From af37e9ced2e2fde227274e4e3b10965528f043d3 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Wed, 1 Nov 2023 00:00:20 +0100 Subject: [PATCH] Compare env variable with string 'true' value --- .github/workflows/docker-merge-tags.yml | 4 ++-- .github/workflows/docker-tag-push.yml | 4 ++-- .github/workflows/docker-wiki-update.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-merge-tags.yml b/.github/workflows/docker-merge-tags.yml index fb20c96799..d1ad9a44ef 100644 --- a/.github/workflows/docker-merge-tags.yml +++ b/.github/workflows/docker-merge-tags.yml @@ -48,7 +48,7 @@ jobs: shell: bash - name: Login to Registry 🔐 - if: env.PUSH_TO_REGISTRY + if: env.PUSH_TO_REGISTRY == 'true' uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 with: registry: quay.io @@ -56,6 +56,6 @@ jobs: password: ${{ secrets.REGISTRY_TOKEN }} - name: Merge tags for the images 🔀 - if: env.PUSH_TO_REGISTRY + if: env.PUSH_TO_REGISTRY == 'true' run: python3 -m tagging.merge_tags --short-image-name ${{ inputs.image }} --tags-dir /tmp/jupyter/tags/ shell: bash diff --git a/.github/workflows/docker-tag-push.yml b/.github/workflows/docker-tag-push.yml index aa54bf1d65..450dee0ae5 100644 --- a/.github/workflows/docker-tag-push.yml +++ b/.github/workflows/docker-tag-push.yml @@ -38,7 +38,7 @@ jobs: platform: ${{ inputs.platform }} - name: Login to Registry 🔐 - if: env.PUSH_TO_REGISTRY + if: env.PUSH_TO_REGISTRY == 'true' uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 with: registry: quay.io @@ -54,6 +54,6 @@ jobs: run: python3 -m tagging.apply_tags --short-image-name ${{ inputs.image }} --tags-dir /tmp/jupyter/tags/ --platform ${{ inputs.platform }} --registry ${{ env.REGISTRY }} --owner ${{ env.OWNER }} - name: Push Images to Registry 📤 - if: env.PUSH_TO_REGISTRY + if: env.PUSH_TO_REGISTRY == 'true' run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }} shell: bash diff --git a/.github/workflows/docker-wiki-update.yml b/.github/workflows/docker-wiki-update.yml index 1b97d9b407..c643f5c438 100644 --- a/.github/workflows/docker-wiki-update.yml +++ b/.github/workflows/docker-wiki-update.yml @@ -40,7 +40,7 @@ jobs: shell: bash - name: Push Wiki to GitHub 📤 - if: env.PUSH_TO_REGISTRY + if: env.PUSH_TO_REGISTRY == 'true' uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0 with: commit_message: "Automated wiki publish for ${{ github.sha }}"