-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
26 lines (24 loc) · 817 Bytes
/
.gitlab-ci.yml
File metadata and controls
26 lines (24 loc) · 817 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
# .gitlab-ci.yml
stages:
- build
- test
build:
stage: build
image:
name: quay.io/singularity/singularity:v3.6.1
entrypoint: ["/bin/bash", "-l", "-c"]
variables:
GIT_SUBMODULE_STRATEGY: none
script:
- echo "Starting build process"
- singularity build ./env/chips-env.sif ./env/singularity/chips-env.def
- echo $SYLABS_CLOUD_TOKEN > sylabs_token.dat
- singularity remote login --tokenfile sylabs_token.dat
- singularity key newpair --password=$SINGULARITY_KEY_PSD --name=chipsneutrino --email=$SINGULARITY_KEY_EMAIL --push=true
- echo $SINGULARITY_KEY_PSD | singularity sign env/chips-env.sif
- singularity push env/chips-env.sif library://chipsneutrino/default/chips-env:latest
only:
refs:
- master
changes:
- ./env/singularity/chips-env.def