Build and release #69
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
name: Build and release | |
on: | |
workflow_dispatch: | |
inputs: | |
version_r: | |
description: "R versions to build (36, 40, 41, 42, 43 valid; also 36,40,41,42,43 for all)" | |
version_bioc: | |
description: "Bioconductor versions to build (3.16, 3.17, 3.18 valid; also 3.16,3.17,3.18 for all)" | |
version_create: | |
description: "Version of image (vx (e.g. v1) or dev valid)" | |
required: true | |
default: "dev" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install apptainer | |
run: .devcontainer/scripts/install-apptainer.sh | |
- name: Build and release manually-selected versions of Rocker images | |
if: github.event_name == 'workflow_dispatch' | |
run: | | |
echo "Creating new images for manually-selected versions of Rocker images" | |
set -e | |
IFS=',' read -ra VERSIONS_BASE <<< "${{ github.event.inputs.version_r }}" | |
for VERSION_BASE in "${VERSIONS_BASE[@]}"; do | |
echo "Building version $VERSION_BASE" | |
IFS=',' read -ra VERSIONS_CREATE <<< "${{ github.event.inputs.version_create }}" | |
for VERSION_CREATE in "${VERSIONS_CREATE[@]}"; do | |
echo "Building version $VERSIONS_CREATE" | |
./build_and_release.sh r "$VERSION_BASE" "$VERSION_CREATE" | |
done | |
done | |
- name: Build and release manually-selected versions of BioConductor images | |
if: github.event_name == 'workflow_dispatch' | |
run: | | |
echo "Creating new images for manually-selected versions of Rocker images" | |
set -e | |
IFS=',' read -ra VERSIONS_BASE <<< "${{ github.event.inputs.version_bioc }}" | |
for VERSION_BASE in "${VERSIONS_BASE[@]}"; do | |
echo "Building version $VERSION_BASE" | |
IFS=',' read -ra VERSIONS_CREATE <<< "${{ github.event.inputs.version_create }}" | |
for VERSION_CREATE in "${VERSIONS_CREATE[@]}"; do | |
echo "Building version $VERSIONS_CREATE" | |
./build_and_release.sh bioc "$VERSION_BASE" "$VERSION_CREATE" | |
done | |
done |