added new workflows #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is file is automatically generated. Do not edit. | |
name: 'cat12' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: ["test_docker_build"] | |
jobs: | |
cat12: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
base_image: ['ubuntu:22.04', 'ubuntu:18.04', 'debian:bullseye-slim', 'debian:buster-slim', 'fedora:36', 'centos:7'] | |
version: ['r1933_R2017b', 'r2166_R2017b'] | |
method: ['binaries'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install neurodocker | |
run: python -m pip install --editable .[dev] | |
- name: Generate Dockerfile | |
run: | | |
apt_based=('ubuntu:22.04', 'ubuntu:18.04', 'debian:bullseye-slim', 'debian:buster-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 \ | |
--matlabmcr method='binaries' version='2017b' \ | |
--cat12 \ | |
version=${{ matrix.version }} \ | |
method=${{ matrix.method }} \ | |
> Dockerfile_tmp | |
cat Dockerfile_tmp | |
- name: Build the Docker image | |
run: docker build -f Dockerfile_tmp . |