-
Notifications
You must be signed in to change notification settings - Fork 97
60 lines (45 loc) · 1.67 KB
/
freesurfer.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# This is file is automatically generated. Do not edit.
name: 'freesurfer'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: ["test_docker_build"]
jobs:
freesurfer:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
base_image: ['ubuntu:22.04', 'ubuntu:18.04', 'ubuntu:16.04', 'debian:bullseye-slim', 'debian:buster-slim', 'debian:stretch-slim', 'fedora:36', 'centos:7']
version: ['7.4.1', '7.3.2', '7.3.1', '7.3.0', '7.2.0', '7.1.1', '7.1.1-min', '7.1.0', '6.0.1', '6.0.0', '6.0.0-min']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install neurodocker
run: python -m pip install --editable .[dev]
- name: Generate Dockerfile
run: |
apt_based=('ubuntu:22.04', 'ubuntu:18.04', 'ubuntu:16.04', 'debian:bullseye-slim', 'debian:buster-slim', 'debian:stretch-slim')
if [[ " ${apt_based[*]} " =~ ${{ matrix.base_image }} ]]; then
pkg_manager="apt"
fi
yum_based=('fedora:36', 'centos:7')
if [[ " ${yum_based[*]} " =~ ${{ matrix.base_image }} ]]; then
pkg_manager="yum"
fi
neurodocker \
generate docker \
--base-image=${{ matrix.base_image }} \
--pkg-manager=${pkg_manager} \
--yes \
--freesurfer \
version=${{ matrix.version }} \
> Dockerfile_tmp
cat Dockerfile_tmp
- name: Build the Docker image
run: docker build -f Dockerfile_tmp .