-
Notifications
You must be signed in to change notification settings - Fork 12
32 lines (27 loc) · 978 Bytes
/
build-singularity.yml
File metadata and controls
32 lines (27 loc) · 978 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
31
32
name: Build and publish Singularity container image
on:
workflow_dispatch:
inputs:
version:
description: 'Image version (e.g., 4.2.1-r4)'
required: true
default: '4.2.1-r4'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
- name: Docker Login
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
with:
registry: public.cr.seqera.io
username: ${{ vars.SEQERA_PUBLIC_CR_USERNAME }}
password: ${{ secrets.SEQERA_PUBLIC_CR_PASSWORD }}
- name: Build and Push Image to public.cr.seqera.io
run: |
cd singularity
make build version=${{ github.event.inputs.version }}