Skip to content

Publish

Publish #58

Workflow file for this run

name: Publish
on:
push:
branches:
- main
schedule:
- cron: "13 4 * * 0" # every Sunday at 4:13 UTC https://crontab.guru/#13_4_*_*_0
permissions:
contents: read
packages: write
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Shellcheck
run: "shellcheck *.sh"
- uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile: Dockerfile
build-general:
runs-on: ubuntu-22.04
needs: lint
steps:
- uses: actions/checkout@v4
- name: Build general-purpose container
run: make general
- name: Publish
uses: thermondo/gce-docker-push-action@a51e08b0f3c379d26d65e327ce0271aa21ecd50c
with:
username: ${{ github.repository_owner }}
creds: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
image: ghcr.io/thermondo/sigsci
build-python:
runs-on: ubuntu-22.04
needs: lint
strategy:
matrix:
version:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Build Python container
run: make python
env:
PYTHON_VERSION: ${{ matrix.version }}
- name: Publish
uses: thermondo/gce-docker-push-action@a51e08b0f3c379d26d65e327ce0271aa21ecd50c
with:
username: ${{ github.repository_owner }}
creds: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
image: ghcr.io/thermondo/sigsci
build-java:
runs-on: ubuntu-22.04
needs: lint
strategy:
matrix:
version:
- "21"
steps:
- uses: actions/checkout@v4
- name: Build Java container
run: make java
env:
JAVA_VERSION: ${{ matrix.version }}
- name: Publish
uses: thermondo/gce-docker-push-action@a51e08b0f3c379d26d65e327ce0271aa21ecd50c
with:
username: ${{ github.repository_owner }}
creds: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
image: ghcr.io/thermondo/sigsci