-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (30 loc) · 1.17 KB
/
ilab-base-singularity-dev.yaml
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
40
41
# TODO:
# - only build when the recipe file changes, or on a periodic schedule
name: ilab-base dev (singularity)
on:
push:
jobs:
build-container-dev:
env:
SINGULARITY_IMAGE: quay.io/singularity/singularity:v3.11.5
CONTAINER_NAME: ilab-base-singularity
CONTAINER_DEFINITION_FILE_PATH: singularity/ilab-base/ilab-base_dev.def
CONTAINER_TAG: latest
runs-on: ubuntu-latest
container:
image: quay.io/singularity/singularity:v3.11.5
options: --privileged
name: Check Software
steps:
- name: Check out code for the container builds
uses: actions/checkout@v2
- name: Build Container
run: |
sudo -E singularity build container.sif singularity/ilab-base/ilab-base_dev.def
- name: Login and Deploy Container
if: (github.event_name != 'pull_request')
env:
keepgoing: ${{ env.keepgoing }}
run: |
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io
singularity push container.sif oras://ghcr.io/nasa-nccs-hpda/${CONTAINER_NAME}:${CONTAINER_TAG}