Skip to content

Commit

Permalink
Remove the leading "v" character to tag apptainer image versions on r…
Browse files Browse the repository at this point in the history
…elease
  • Loading branch information
jlenain committed Feb 2, 2024
1 parent a8a7a3c commit c77f27e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c77f27e

Please sign in to comment.