Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbradley committed Sep 13, 2024
1 parent 0de1c04 commit 738e08a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: create lowercase image
id: lowercase
run: echo "LC_IMAGE_NAME=${IMAGE_NAME,,}"

- name: Setup apptainer executable
uses: eWaterCycle/setup-apptainer@v2
with:
Expand All @@ -34,10 +38,5 @@ jobs:
- name: Build an apptainer image
run: apptainer build --build-arg PYBIOCLIP_VERSION=1.0.0 apptainer.sif apptainer.def

- name: Create lowercase image name
id: lc_image_name
run: |
echo "IMAGE_NAME=$(echo ${{ env.IMAGE_NAME}} | awk '{print tolower($0)}')"
- name: Publish apptainer image
run: apptainer push apptainer.sif oras://${{ env.REGISTRY }}/${{ steps.lc_image_name.outputs.IMAGE_NAME }}-sif:1.0.0
run: apptainer push apptainer.sif oras://${{ env.REGISTRY }}/${{ steps.lowercase.LC_IMAGE_NAME }}-sif:1.0.0

0 comments on commit 738e08a

Please sign in to comment.