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() }}