From 36065004986362743010d0ac4b70a178d8200b9f Mon Sep 17 00:00:00 2001 From: Oliver Pain <43761992+opain@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:59:02 +0100 Subject: [PATCH] Update build_deploy_container.yaml --- .github/workflows/build_deploy_container.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_deploy_container.yaml b/.github/workflows/build_deploy_container.yaml index 90ea314..775a39e 100644 --- a/.github/workflows/build_deploy_container.yaml +++ b/.github/workflows/build_deploy_container.yaml @@ -58,7 +58,7 @@ jobs: - name: Convert Docker Image to Singularity SIF run: | - apptainer pull ${GITHUB_WORKSPACE}/image.sif docker://${DOCKER_IMAGE_NAME}:latest + apptainer pull image.sif docker://${DOCKER_IMAGE_NAME}:latest - name: Install expect run: | @@ -84,24 +84,24 @@ jobs: - name: Sign the Singularity Image run: | expect -c ' - spawn apptainer sign ${GITHUB_WORKSPACE}/image.sif + spawn apptainer sign image.sif expect "Enter your key passphrase : " send -- "${{ secrets.SIGNING_KEY_PASSWORD }}\r" expect eof ' - name: Create Token File - run: echo "${{ secrets.SINGULARITY_LIBRARY_TOKEN }}" > ${GITHUB_WORKSPACE}/tokenfile + run: echo "${{ secrets.SINGULARITY_LIBRARY_TOKEN }}" > tokenfile - name: Login to Singularity Library run: | apptainer remote add --no-login SylabsCloud cloud.sycloud.io apptainer remote use SylabsCloud - apptainer remote login --tokenfile ${GITHUB_WORKSPACE}/tokenfile + apptainer remote login --tokenfile tokenfile - name: Push Singularity Image to Singularity Library run: | - apptainer push ${GITHUB_WORKSPACE}/image.sif $SINGULARITY_IMAGE_NAME:latest - apptainer push ${GITHUB_WORKSPACE}/image.sif $SINGULARITY_IMAGE_NAME:${{ steps.set_tag.outputs.tag }} + apptainer push image.sif $SINGULARITY_IMAGE_NAME:latest + apptainer push image.sif $SINGULARITY_IMAGE_NAME:${{ steps.set_tag.outputs.tag }} - name: Setup tmate session if: ${{ failure() }}