From c77f27ea8541cf816b2c4a396554233bc4532519 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lenain Date: Fri, 2 Feb 2024 16:35:26 +0100 Subject: [PATCH] Remove the leading "v" character to tag apptainer image versions on release --- .github/workflows/deploy-ghcr.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-ghcr.yml b/.github/workflows/deploy-ghcr.yml index dc2990dc..059dd3f5 100644 --- a/.github/workflows/deploy-ghcr.yml +++ b/.github/workflows/deploy-ghcr.yml @@ -59,7 +59,10 @@ jobs: # Assign the release tag to container on release if: github.event_name == 'release' run: | - apptainer push ${{ env.container }}.sif oras://${{ env.registry }}/${{ github.repository }}:${{ github.ref_name }} + fullversionname=${{ github.ref_name }} + # Remove the leading "v" character + versionname=${fullversionname:1} + apptainer push ${{ env.container }}.sif oras://${{ env.registry }}/${{ github.repository }}:${versionname} - name: Deploy ${{ env.container }} container ${{ matrix.deffiles[1] }} # Otherwise, the container tag is "latest" by default.