Skip to content

update README

update README #40

name: starfish apptainer build and push
on:
push:
branches:
- main # or any other branch you want to trigger the workflow
jobs:
apptainer-build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
container:
image: quay.io/singularity/singularity:v3.8.1
options: --privileged
steps:
- name: Checkout Repository
uses: actions/checkout@v2
# Step to set up Apptainer and build the .sif image
- name: Build Apptainer Image
run: |
singularity build starfish.sif apptainer/starfish.def
- name: Login and Deploy Container
run: |
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io
singularity push starfish.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${tag}