Skip to content

Commit

Permalink
GHA: re-enable apptainer
Browse files Browse the repository at this point in the history
  • Loading branch information
pdiakumis committed Jun 6, 2024
1 parent b0827b2 commit ee40248
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build_conda_recipes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,20 @@ jobs:
tags: |
sigven/pcgr:${{ env.VERSION }}
#- name: Apptainer setup
# uses: eWaterCycle/setup-apptainer@v2
#- name: Apptainer build
# run: |
# docker image ls -a
# docker save sigven/pcgr:${VERSION} -o pcgr_${VERSION}.tar
# ls -la
# df -h
# echo "Building Apptainer SIF"
# echo "---------------------------------"
# apptainer build pcgr_singularity_${VERSION}.sif docker-archive://pcgr_${VERSION}.tar
# echo "---------------------------------"
# ls -lSha
#- name: Upload SIF to GHCR
# run: |
# echo ${{ secrets.GITHUB_TOKEN }} | apptainer registry login -u ${{ github.actor }} --password-stdin oras://ghcr.io
# apptainer push pcgr_singularity_${VERSION}.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${VERSION}.singularity
- name: Apptainer setup
uses: eWaterCycle/setup-apptainer@v2
- name: Apptainer build
run: |
docker image ls -a
docker save sigven/pcgr:${VERSION} -o pcgr_${VERSION}.tar
ls -la
df -h
echo "Building Apptainer SIF"
echo "---------------------------------"
apptainer build pcgr_singularity_${VERSION}.sif docker-archive://pcgr_${VERSION}.tar
echo "---------------------------------"
ls -lSha
- name: Upload SIF to GHCR
run: |
echo ${{ secrets.GITHUB_TOKEN }} | apptainer registry login -u ${{ github.actor }} --password-stdin oras://ghcr.io
apptainer push pcgr_singularity_${VERSION}.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${VERSION}.singularity

0 comments on commit ee40248

Please sign in to comment.