Skip to content

Commit

Permalink
Add debug image creation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetoner committed May 19, 2023
1 parent 81ade6f commit 0162fef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
tags:
- '*'
branches:
- debug

env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
Expand Down Expand Up @@ -31,7 +33,13 @@ jobs:
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Publish the Docker debug image
if: github.ref == 'refs/heads/debug'
run: |
DOCKER_IMAGE_DEBUG=$DOCKER_USER/$REPO_NAME:debug${{ matrix.tag_extension }}
docker buildx build . --no-cache --platform=${{ matrix.platforms }} -t "${DOCKER_IMAGE_DEBUG}" -f ${{ matrix.docker_file }} --push
- name: Build and Publish the Docker image
if: github.ref != 'refs/heads/debug'
run: |
DOCKER_IMAGE_LATEST=$DOCKER_USER/$REPO_NAME:latest${{ matrix.tag_extension }}
DOCKER_IMAGE_VERSION=$DOCKER_USER/$REPO_NAME:$GITHUB_REF_NAME${{ matrix.tag_extension }}
Expand Down

0 comments on commit 0162fef

Please sign in to comment.