ci: build the container image on every pull request #64

Stängd
öppnade 2026-09-29 15:22:02 +00:00 av supernaut · 0 kommentarer
Ägare

CI never builds the container image. ci.yml runs lint, tests and pnpm build, but not the Containerfile. A broken image build only shows up when a v* tag is pushed and release.yml runs, and by then the tag is burned.

This has not bitten this repo yet. The Containerfile copies pnpm-workspace.yaml, so v1.4.1 built cleanly on 2026-09-29. It did bite the reconcile-trigger shim, which has the same CI and release layout: its v0.1.1 build failed with ERR_PNPM_IGNORED_BUILDS while every PR was green (bitborg/bitborg-reconcile-trigger#48 has the details). This image changes production entitlements, so a surprise at tag time is worse here.

Task

Add a step to ci.yml that builds the image from the Containerfile on every pull request, without pushing it. Use the same build command release.yml uses. Do it the same way as bitborg/bitborg-reconcile-trigger#48.

Done when

  • A PR that breaks the Containerfile fails CI.
  • Checked with a negative control: drop pnpm-workspace.yaml from the build-stage COPY on a throwaway branch and confirm CI goes red.
CI never builds the container image. `ci.yml` runs lint, tests and `pnpm build`, but not the `Containerfile`. A broken image build only shows up when a `v*` tag is pushed and `release.yml` runs, and by then the tag is burned. This has not bitten this repo yet. The `Containerfile` copies `pnpm-workspace.yaml`, so `v1.4.1` built cleanly on 2026-09-29. It did bite the reconcile-trigger shim, which has the same CI and release layout: its `v0.1.1` build failed with `ERR_PNPM_IGNORED_BUILDS` while every PR was green (bitborg/bitborg-reconcile-trigger#48 has the details). This image changes production entitlements, so a surprise at tag time is worse here. ## Task Add a step to `ci.yml` that builds the image from the `Containerfile` on every pull request, without pushing it. Use the same build command `release.yml` uses. Do it the same way as bitborg/bitborg-reconcile-trigger#48. ## Done when - A PR that breaks the `Containerfile` fails CI. - Checked with a negative control: drop `pnpm-workspace.yaml` from the build-stage `COPY` on a throwaway branch and confirm CI goes red.
Logga in för att delta i denna konversation.
Ingen milstolpe
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-auth-reconciler#64
Ingen beskrivning angiven.