-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 887 Bytes
/
Copy pathapptainer_build.yaml
File metadata and controls
30 lines (25 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: fusemblr 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 fusemblr.sif apptainer/fusemblr.def
- name: Login and Deploy Container
run: |
echo ${{ secrets.APPTAINER_API_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io
singularity push fusemblr.sif oras://ghcr.io/samtobam/fusemblr:${tag}