42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
# Publishes an image for every new Steam build of each supported Project Zomboid
|
|
# version. Immutable tags are never overwritten (see ci/release.sh).
|
|
# Requires the repository secrets REGISTRY_USER and REGISTRY_TOKEN (a token with
|
|
# package write access) and a runner with a Docker (or Podman) CLI.
|
|
name: release
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 */6 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
image:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- pz_version: "42.21"
|
|
steam_branch: public
|
|
latest: "true"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
# release.sh derives the version from the newest v* tag
|
|
fetch-depth: 0
|
|
|
|
- name: Log in to the registry
|
|
env:
|
|
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
|
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
|
run: echo "${REGISTRY_TOKEN}" | docker login git.security-command.org --username "${REGISTRY_USER}" --password-stdin
|
|
|
|
- name: Build and publish
|
|
env:
|
|
IMAGE: git.security-command.org/overlord/zomboidforge
|
|
PZ_VERSION: ${{ matrix.pz_version }}
|
|
PZ_BRANCH: ${{ matrix.steam_branch }}
|
|
PUBLISH: "true"
|
|
LATEST: ${{ matrix.latest }}
|
|
run: ci/release.sh
|