fix: missing comma #203
Workflow file for this run
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: Docker image | |
on: | |
schedule: | |
- cron: '0 1 1,16 * *' | |
push: | |
branches: | |
- main | |
env: | |
registry: ghcr.io | |
user: js2264 | |
repository: ohca | |
jobs: | |
build-push: | |
strategy: | |
matrix: | |
BIOC_VERSION: [devel, RELEASE_3_17] | |
runs-on: ubuntu-latest | |
name: ${{ matrix.BIOC_VERSION }} | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: π§Ύ Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: π Free Disk Space (Ubuntu) | |
uses: jlumbroso/[email protected] | |
- name: π Get current package version | |
id: version | |
run: | | |
version=$(grep -m1 -E '^Version: +' DESCRIPTION | sed -E 's/.*: +//') | |
- name: π Log in to the Container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.PAT_GITHUB }} | |
- name: π· Get metadata for Docker | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ghcr.io/js2264/ohca | |
tags: | | |
type=raw,value=latest,enable=true | |
type=raw,value=${{ steps.version.outputs.version }},enable=true | |
type=raw,value=bioc_${{ matrix.BIOC_VERSION }},enable=true | |
- name: π· Build and push multi-arch Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }} | |
platforms: linux/amd64 | |
file: Dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
outputs: type=image,annotation-index.org.opencontainers.image.description=OHCA | |
build-args: | | |
VERSION=${{ steps.version.outputs.version }} | |
BIOC_VERSION=${{ matrix.BIOC_VERSION }} | |
render-deploy: | |
needs: build-push | |
strategy: | |
matrix: | |
BIOC_VERSION: [devel] | |
runs-on: ubuntu-latest | |
container: ghcr.io/js2264/ohca:bioc_${{ matrix.BIOC_VERSION }} | |
steps: | |
- name: π§Ύ Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: π Render OHCA book from versionized OHCA container | |
run: | | |
quarto install tinytex | |
quarto render | |
- name: π Install rsync | |
run: | | |
apt-get update && apt-get install -y rsync | |
- name: π Deploy OHCA book to Github Pages on versionized branch | |
uses: JamesIves/[email protected] | |
with: | |
folder: docs/ | |
branch: bioc_${{ matrix.BIOC_VERSION }} | |
clean: true |