fix(ci): immutable release tags and a harder smoke test #15

Sammanfogat
supernaut sammanfogade 3 incheckningar från fix/release-and-smoke in i main 2026-10-13 07:26:29 +00:00
Ägare

Closes #5
Closes #7

Release tags (#5)

  • The release job checks out full history and fails unless the tag commit is an ancestor of origin/main.
  • Before building, it runs podman manifest inspect on the version tag and the sha- tag. It fails with "already exists, tags are immutable" if either exists.

Smoke test (#7)

  • The management port is published on a random loopback port, read back with podman port. No fixed host port.
  • A Postgres that never gets ready fails with postgres not ready.
  • The Postgres image is a pg_image variable with a # renovate: annotation. A custom manager in renovate.json tracks it.
  • CI runs shellcheck scripts/*.sh before the image build.

Tested

  • Ran scripts/smoke-test.sh against a locally built image: passes, /health/ready is UP.
  • Forced a Postgres that never becomes ready: prints postgres not ready, exit 1.
  • shellcheck scripts/*.sh clean. prettier --check clean on the YAML and JSON.
  • The release checks are not run locally. They run on the next tag.
Closes #5 Closes #7 ## Release tags (#5) - The release job checks out full history and fails unless the tag commit is an ancestor of `origin/main`. - Before building, it runs `podman manifest inspect` on the version tag and the `sha-` tag. It fails with "already exists, tags are immutable" if either exists. ## Smoke test (#7) - The management port is published on a random loopback port, read back with `podman port`. No fixed host port. - A Postgres that never gets ready fails with `postgres not ready`. - The Postgres image is a `pg_image` variable with a `# renovate:` annotation. A custom manager in `renovate.json` tracks it. - CI runs `shellcheck scripts/*.sh` before the image build. ## Tested - Ran `scripts/smoke-test.sh` against a locally built image: passes, `/health/ready` is UP. - Forced a Postgres that never becomes ready: prints `postgres not ready`, exit 1. - `shellcheck scripts/*.sh` clean. `prettier --check` clean on the YAML and JSON. - The release checks are not run locally. They run on the next tag.
supernaut lade till 2 incheckningar 2026-10-13 06:36:56 +00:00
Closes #5
fix(ci): harden the smoke test and lint scripts
En del kontroller misslyckades
ci / ci (pull_request) Failing after 7s
83f5c377f6
Bind the management port to a random loopback port, fail with
'postgres not ready' when the readiness loop ends, track the Postgres
tag with Renovate and run shellcheck in CI.

Closes #7
supernaut lade till 1 incheckning 2026-10-13 06:44:00 +00:00
fix(ci): run a pinned shellcheck and silence SC2317 as well
Alla kontroller lyckades
ci / ci (pull_request) Successful in 2m17s
e85ee92e5b
The runner shellcheck is 0.10, which reports SC2317 where 0.11 reports SC2329.
supernaut sammanfogade incheckning 5e0c18ff2f till main 2026-10-13 07:26:29 +00:00
supernaut tog bort grenen fix/release-and-smoke 2026-10-13 07:26:29 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-keycloak!15
Ingen beskrivning angiven.