Skip to content

Commit

Permalink
Update build_deploy_container.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
opain authored Jun 14, 2024
1 parent e92e428 commit 3606500
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_deploy_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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() }}
Expand Down

0 comments on commit 3606500

Please sign in to comment.