From 70ad9e8061f65c3c07bc39c6bb5d5e8f58090a04 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lenain Date: Wed, 6 Mar 2024 11:19:13 +0100 Subject: [PATCH] Ensure the apptainer image tag is the release name on release, or "latest" otherwise. (#112) Co-authored-by: Jean-Philippe Lenain --- .github/workflows/deploy-ghcr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-ghcr.yml b/.github/workflows/deploy-ghcr.yml index 059dd3f5..71ad1a47 100644 --- a/.github/workflows/deploy-ghcr.yml +++ b/.github/workflows/deploy-ghcr.yml @@ -67,7 +67,7 @@ jobs: - name: Deploy ${{ env.container }} container ${{ matrix.deffiles[1] }} # Otherwise, the container tag is "latest" by default. # Don't push the container on a pull request. - if: github.event_name != 'pull_request' + if: ${{ (github.event_name != 'release') && (github.event_name != 'pull_request') }} run: | apptainer push ${{ env.container }}.sif oras://${{ env.registry }}/${{ github.repository }}:${{ matrix.deffiles[1] }}