Let’s Go All PsychoPy — What Could Possibly Go Wrong? #1
Workflow file for this run
This file contains hidden or 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 and deploy Apptainer image | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| container: | |
| image: kaczmarj/apptainer:latest | |
| options: --privileged | |
| name: Build and deploy container | |
| steps: | |
| - name: Check out code for the container builds | |
| uses: actions/checkout@v4 | |
| - name: Build SIF image | |
| run: | | |
| apptainer build bidscoin.sif apptainer.def | |
| - name: Login and deploy container | |
| run: | | |
| echo ${{ secrets.GITHUB_TOKEN }} | apptainer remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io | |
| apptainer push bidscoin.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${GITHUB_REF_NAME} |