Skip to content

Let’s Go All PsychoPy — What Could Possibly Go Wrong? #1

Let’s Go All PsychoPy — What Could Possibly Go Wrong?

Let’s Go All PsychoPy — What Could Possibly Go Wrong? #1

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}