Skip to content

Commit

Permalink
apptainer: deploy to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
pdiakumis committed Jun 1, 2024
1 parent d6f4093 commit 99fad56
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/apptainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ jobs:
docker save sigven/pcgr:${VERSION} -o pcgr_${VERSION}.tar
ls -la
df -h
echo "Building Apptainer SIF"
echo "---------------------------------"
apptainer build pcgr_${VERSION}.sif docker-archive://pcgr_${VERSION}.tar
- name: Upload SIF
uses: actions/upload-artifact@v4
with:
name: pcgr_${{ env.VERSION }} Singularity Image File
path: ./pcgr_${{ env.VERSION }}.sif
echo "---------------------------------"
ls -la
df -h
- name: Upload SIF to GHCR
run: |
echo ${{ secrets.GITHUB_TOKEN }} | apptainer remote login -u ${{ github.actor }} --password-stdin oras://ghcr.io
apptainer push pcgr_${VERSION}.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${VERSION}

0 comments on commit 99fad56

Please sign in to comment.