From dc277692fcfca692249764384b31c2fa32a9d424 Mon Sep 17 00:00:00 2001 From: Oliver Pain <43761992+opain@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:39:10 +0100 Subject: [PATCH] Update build_deploy_container.yaml --- .github/workflows/build_deploy_container.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_deploy_container.yaml b/.github/workflows/build_deploy_container.yaml index a472e93..f636c0b 100644 --- a/.github/workflows/build_deploy_container.yaml +++ b/.github/workflows/build_deploy_container.yaml @@ -53,8 +53,15 @@ jobs: run: | apptainer pull ${GITHUB_WORKSPACE}/image.sif docker://${DOCKER_IMAGE_NAME}:latest + - name: Sign the Singularity Image + run: | + apptainer sign ${GITHUB_WORKSPACE}/image.sif + + - name: Create Token File + run: echo "${{ secrets.SINGULARITY_LIBRARY_TOKEN }}" > ${GITHUB_WORKSPACE}/tokenfile + - name: Login to Singularity Library - run: echo "${{ secrets.SINGULARITY_LIBRARY_TOKEN }}" | apptainer remote login --tokenfile - + run: apptainer remote login --tokenfile ${GITHUB_WORKSPACE}/tokenfile - name: Push Singularity Image to Singularity Library run: |