-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 1.04 KB
/
container.yml
File metadata and controls
36 lines (34 loc) · 1.04 KB
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
name: Singularity Build (docker)
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-18.04
strategy:
matrix:
singularity_version:
- '3.5.3'
container:
image: quay.io/singularity/singularity:v${{ matrix.singularity_version }}
options: --privileged
steps:
- name: Check out code for the container build
uses: actions/checkout@v1
- name: Build Container
env:
SINGULARITY_RECIPE: singularity_container/debian_pycal_NO_JULIA.def
OUTPUT_CONTAINER: container.sif
SINGULARITY_DOCKER_PASSWORD: ${{secrets.DOCKER_SEC}}
SINGULARITY_DOCKER_USERNAME: algebrato
run: |
ls
if [ -f "${SINGULARITY_RECIPE}" ]; then
echo "Working directory: $PWD"
echo "Recipe: ${SINGULARITY_RECIPE}"
echo "Output: ${OUTPUT_CONTAINER}"
singularity build ${OUTPUT_CONTAINER} ${SINGULARITY_RECIPE}
else
echo "${SINGULARITY_RECIPE} is not found."
echo "Present working directory: $PWD"
ls
fi