Skip to content

Commit

Permalink
ci: Fix skipping of master containers on release
Browse files Browse the repository at this point in the history
We need to compare the variable against 'true' to make the condition
work. And while at it, also skip the preparatory step.

Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
jan-kiszka committed Mar 11, 2024
1 parent f650ebe commit af0dd01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ jobs:
fi
- name: Set up docker build
uses: ./.github/actions/docker-init
if: ${{ env.PUSH_MASTER == 'true' }}
with:
deploy-user: ${{ github.actor }}
deploy-token: ${{ secrets.GITHUB_TOKEN }}
image-name: ${{ matrix.image-name }}
- name: Build ${{ matrix.image-name }} image
uses: docker/build-push-action@v5
if: ${{ env.PUSH_MASTER }}
if: ${{ env.PUSH_MASTER == 'true' }}
with:
context: /home/runner/kas-clone
target: ${{ matrix.image-name }}
Expand Down

0 comments on commit af0dd01

Please sign in to comment.