-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 1.01 KB
/
parse_dist_img_sif.yml
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
33
34
35
36
37
38
39
name: PARSE_DIST Singularity Image CI
on:
push:
paths:
- modules/local/parse_dist/**
workflow_dispatch:
env:
img_name: ${{ secrets.DOCKERHUB_USERNAME }}/samntrek-parse-dist
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test-containers:
runs-on: ubuntu-latest
container:
image: quay.io/singularity/singularity:v4.1.0-slim
options: --privileged
steps:
- name: Check out code for the container builds
uses: actions/checkout@v2
- name: Build Container
working-directory: ./modules/local/parse_dist/
env:
recipe: singularity.def
run: |
singularity build container.sif ${{ env.recipe }}
- name: Login and Deploy Container
run: |
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io
singularity push container.sif oras://ghcr.io/${env.img_name}:latest