From 738e08abe8a4c669b6ba5d5fe37b5debc871a86a Mon Sep 17 00:00:00 2001 From: John Bradley Date: Fri, 13 Sep 2024 12:10:21 -0400 Subject: [PATCH] Try again --- .github/workflows/deploy-image.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml index 4493560..ad9ca6b 100644 --- a/.github/workflows/deploy-image.yml +++ b/.github/workflows/deploy-image.yml @@ -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: @@ -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