From ee402482b37c18d48332c6ba0020405b1e66b226 Mon Sep 17 00:00:00 2001 From: pdiakumis Date: Thu, 6 Jun 2024 19:16:31 +1000 Subject: [PATCH] GHA: re-enable apptainer --- .github/workflows/build_conda_recipes.yaml | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build_conda_recipes.yaml b/.github/workflows/build_conda_recipes.yaml index 0d89bfdd..dcaa5e12 100644 --- a/.github/workflows/build_conda_recipes.yaml +++ b/.github/workflows/build_conda_recipes.yaml @@ -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