test even more concise syntax #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Singularity Container | |
on: | |
schedule: | |
- cron: '0 2 1 * *' | |
push: | |
# branches-ignore: | |
# - master | |
# paths: | |
# - 'resources/retinal-rl.def' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- 'resources/retinal-rl.def' | |
workflow_call: | |
inputs: | |
deploy: | |
type: boolean | |
required: false | |
default: true | |
workflow_dispatch: | |
inputs: | |
deploy: | |
type: boolean | |
required: false | |
default: true | |
jobs: | |
singularity-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: test yes | |
if: inputs.deploy == 'true' | |
run: echo "yes" | |
- name: test no | |
if: inputs.deploy != 'true' | |
run: echo "no" | |
# - uses: actions/checkout@v4 | |
# - uses: eWaterCycle/setup-apptainer@v2 | |
# with: | |
# apptainer-version: 1.3.0 | |
# - name: Evaluate whether build should be deployed | |
# id: setup | |
# run: | | |
# if [[ "${{ inputs.deploy }}" != "" ]]; then | |
# echo "deploy=${{ inputs.deploy }}" >> $GITHUB_OUTPUT | |
# else | |
# echo "deploy=false" >> $GITHUB_OUTPUT | |
# fi | |
# - name: Build Singularity container | |
# run: apptainer build retinal-rl.sif resources/retinal-rl.def | |
# - name: Scan classification config / ensure minimal functionality | |
# run: | | |
# cp -r resources/config_templates/* config/ | |
# singularity exec retinal-rl.sif python main.py -m +experiment=classification command=scan system.device=cpu | |
# - name: Deployment / Push to ghcr.io | |
# if: steps.setup.outputs.deploy == 'true' | |
# 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 |