Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/template-sync-state.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"template_repo": "craftainer/template-base",
"synced_tag": "v1.15.5"
"synced_tag": "v1.15.6"
}
14 changes: 3 additions & 11 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,9 @@
does not, so the step is skipped here) and the hooks step forwards its
`SEMVER_RELEASE_TYPE` into the container (the step appends the script's
output to `$GITHUB_ENV` only if it is empty or exactly
`SEMVER_RELEASE_TYPE=<lowercase word>`, failing otherwise), so a `!`-marked PR title (or, on
`SEMVER_RELEASE_TYPE=` with an optional `major`, `minor` or `patch`
value, failing otherwise), so a `!`-marked PR title (or, on
`main`, head commit subject) runs `cargo semver-checks` as `major`.
- `smoke.yml` — builds the `runner` stage of the root `Dockerfile` via
the root `compose.yml`, starts it against the real Postgres, RustFS,
Redis, and Keycloak backing services, and confirms `/health/live` and
`/health/ready` both return 200 -- on push, on pull requests, and on
demand. Runs as the same two-leg `amd64`/`arm64` matrix as
`checks.yml` — this is the check that would actually catch an
arch-specific runtime break (e.g. a C-extension dependency missing an
arm64 wheel), since `checks.yml`'s test run uses `MODE=mock`
in-process fakes for some paths rather than the built image.
- `release.yml` — manually triggered, and only from the default branch:
the `version` job's first step fails on any other ref, and `build`,
`release` and `publish-packages` repeat the check in their own `if:`.
Expand Down Expand Up @@ -94,7 +86,7 @@ e.g. to point at self-hosted runners.

## Architecture matrix

`checks.yml`, `smoke.yml`, and `release.yml`'s `build` job each run as a
`checks.yml` and `release.yml`'s `build` job each run as a
two-leg matrix over `amd64`/`arm64`, both legs building/testing natively
— `ubuntu-24.04-arm` is a real (non-emulated) GitHub-hosted Linux arm64
runner, free on this public repo and billed as ordinary Actions minutes
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ jobs:
# The script's stdout is appended to $GITHUB_ENV, so a stray or
# injected line (a newline in a value, another variable name) would
# set arbitrary environment for later steps. Accept nothing but
# empty output or the single expected assignment.
# empty output or the single expected assignment (the value may be empty:
# the consuming hook falls back to minor).
out="$(python3 -I .github/scripts/semver_release_type.py)"
if [ -n "$out" ] && ! [[ "$out" =~ ^SEMVER_RELEASE_TYPE=[a-z]+$ ]]; then
echo "::error::semver_release_type.py printed something other than SEMVER_RELEASE_TYPE=<word>" >&2
if [ -n "$out" ] && ! [[ "$out" =~ ^SEMVER_RELEASE_TYPE=(major|minor|patch)?$ ]]; then
echo "::error::semver_release_type.py printed something other than SEMVER_RELEASE_TYPE=[major|minor|patch]" >&2
exit 1
fi
[ -z "$out" ] || printf '%s\n' "$out" >> "$GITHUB_ENV"
Expand Down
Loading