Skip to content

Commit f7de8be

Browse files
committed
fix container deploy trigger
1 parent bd694d4 commit f7de8be

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build_container_image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
fi
3232
3333
- name: Upload container images
34-
if: github.secrets.DOCKER_HUB_USERNAME != ''
34+
if: vars.DEPLOY_CONTAINERS == 'true'
3535
run: |
3636
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
3737
docker push docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }} --all-tags
@@ -40,10 +40,10 @@ jobs:
4040
4141
- uses: sigstore/cosign-installer@main
4242
- name: Write signing key to disk (only needed for `cosign sign --key`)
43-
if: github.secrets.DOCKER_HUB_USERNAME != ''
43+
if: vars.DEPLOY_CONTAINERS == 'true'
4444
run: echo "${{ secrets.COSIGN_PRIVATE_KEY }}" > cosign.key
4545
- name: Sign container image with annotations from our environment
46-
if: github.secrets.DOCKER_HUB_USERNAME != ''
46+
if: vars.DEPLOY_CONTAINERS == 'true'
4747
env:
4848
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
4949
run: |

0 commit comments

Comments
 (0)