From af0dd019e73aa6521f732018dd7208b4e83fe897 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Mon, 11 Mar 2024 21:36:54 +0100 Subject: [PATCH] ci: Fix skipping of master containers on release 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 --- .github/workflows/master.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 5f1753c7..ac169d47 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -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 }}