Skip to content

Commit

Permalink
feat: container build with automatical upload to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioseel committed Oct 9, 2024
1 parent 84cc1fa commit 361702a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/container_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ jobs:
singularity-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: eWaterCycle/setup-apptainer@v2
with:
apptainer-version: 1.3.0

- name: Build Singularity container
run: apptainer build retinal-rl.sif resources/retinal-rl.def
run: apptainer build retinal-rl.sif resources/retinal-rl.def

- name: Scan classification config / ensure minimal functionality
run: singularity exec retinal-rl_singularity-image-latest.sif python main.py -m +experiment=cifar10-class-recon command=scan system.device=cpu

- name: Push to ghcr.io
run: singularity registry login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} oras://ghcr.io; singularity push retinal-rl.sif oras://ghcr.io/berenslab/retinal-rl:singularity-image-latest

0 comments on commit 361702a

Please sign in to comment.