Skip to content

Publish

Publish #21

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@v3
- name: Shellcheck
run: "shellcheck *.sh"
- uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
build-general:
runs-on: ubuntu-22.04
needs: lint
steps:
- uses: actions/checkout@v3
- 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"
steps:
- uses: actions/checkout@v3
- 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