ci: rebuild from templates on the docker base with release plumbing #21

Merged
gravityfargo merged 2 commits from chore/template-rebuild into main 2026-08-02 00:03:44 +00:00
Owner

First adoption of the templates repo (templates@3028942). Every template-owned file was deleted and re-applied from the layers; nothing else was touched.

Layers applied

  • common — shared floor
  • docker — base type, detected from the Dockerfile marker
  • common-versioning + common-versioning-docker — release plumbing
  • no documentation publisher
  • baseline build/publish pair (no docker-multiarch / docker-simple)

Not touched

Dockerfile, bump.yml, cz-preview, entrypoint.sh, CHANGELOG.md. The Dockerfile is real, so the layer's baseline was not applied over it; bump.yml is this repo's product.

Carried-forward divergences

Three files deviate from the layers as shipped, all reported as legit patches rather than silently normalised:

  • .dockerignore — baseline * + !Dockerfile plus !entrypoint.sh and !cz-preview. The image COPYs both; the baseline alone makes them invisible to the build. CI confirms the image builds with this form.
  • build-version.ymluses: ./.forgejo/workflows/bump.yml instead of the layer's ModernLeft/commitizen-ci/.forgejo/workflows/bump.yml@0.3.0. This is that repo; the pinned form would make it release through its own previous tag rather than its working copy.
  • README.md — kept, where the common layer ships it empty. It is the fleet's only written record of the CZ_SIGNING_KEY setup, the per-repo bump.yml adoption snippet, and the /commitizen-bot Infisical path. Restored in 7693de9, with the one pr-bump-preview.yaml.yml reference this rebuild's rename invalidated.

What changed in behaviour

  • runs-on moves from docker to ubuntu-latest (workflows) and modernleft-general-ci (code quality).
  • Docker layer caching moves from actions/cache on ${{ runner.temp }}/.buildx-cache to type=gha.
  • Buildx gains network=forgejo-runner-network and memory=3g driver opts.
  • Infisical domain moves from the literal URL to ${{ vars.INFISICAL_DOMAIN }}.
  • The inline test-build job splits into reusable test-build.yml + code-quality.yml.
  • Workflow filenames normalise from .yaml to .yml; .cz.toml becomes cz.toml; renovate.json moves to .forgejo/renovate.json.

CI

Green on 5314f52: run 4227 (test-build.yml — build, checks, code-quality) and run 4226 (pr-bump-preview.yml). The bump preview comment confirms no commit here is bump-eligible, so merging cannot cut a release.

Unproven by this PR, because a pull request cannot meet their triggers: build-version.yml (push to main), publish.yml (tag push), bump.yml (workflow_call), and the ${{ vars.INFISICAL_DOMAIN }} substitution. Those first execute on merge.

Known-stale, pre-existing

README.md points at .forgejo/workflows/build-push.yaml, which does not exist under any name and did not before this rebuild either. Left alone rather than fixed here.

Committed with inert types throughout.

First adoption of the templates repo (`templates@3028942`). Every template-owned file was deleted and re-applied from the layers; nothing else was touched. ## Layers applied - `common` — shared floor - `docker` — base type, detected from the `Dockerfile` marker - `common-versioning` + `common-versioning-docker` — release plumbing - no documentation publisher - baseline build/publish pair (no `docker-multiarch` / `docker-simple`) ## Not touched `Dockerfile`, `bump.yml`, `cz-preview`, `entrypoint.sh`, `CHANGELOG.md`. The `Dockerfile` is real, so the layer's baseline was not applied over it; `bump.yml` is this repo's product. ## Carried-forward divergences Three files deviate from the layers as shipped, all reported as legit patches rather than silently normalised: - **`.dockerignore`** — baseline `*` + `!Dockerfile` plus `!entrypoint.sh` and `!cz-preview`. The image `COPY`s both; the baseline alone makes them invisible to the build. CI confirms the image builds with this form. - **`build-version.yml`** — `uses: ./.forgejo/workflows/bump.yml` instead of the layer's `ModernLeft/commitizen-ci/.forgejo/workflows/bump.yml@0.3.0`. This is that repo; the pinned form would make it release through its own previous tag rather than its working copy. - **`README.md`** — kept, where the `common` layer ships it empty. It is the fleet's only written record of the `CZ_SIGNING_KEY` setup, the per-repo `bump.yml` adoption snippet, and the `/commitizen-bot` Infisical path. Restored in `7693de9`, with the one `pr-bump-preview.yaml` → `.yml` reference this rebuild's rename invalidated. ## What changed in behaviour - `runs-on` moves from `docker` to `ubuntu-latest` (workflows) and `modernleft-general-ci` (code quality). - Docker layer caching moves from `actions/cache` on `${{ runner.temp }}/.buildx-cache` to `type=gha`. - Buildx gains `network=forgejo-runner-network` and `memory=3g` driver opts. - Infisical `domain` moves from the literal URL to `${{ vars.INFISICAL_DOMAIN }}`. - The inline test-build job splits into reusable `test-build.yml` + `code-quality.yml`. - Workflow filenames normalise from `.yaml` to `.yml`; `.cz.toml` becomes `cz.toml`; `renovate.json` moves to `.forgejo/renovate.json`. ## CI Green on `5314f52`: run 4227 (`test-build.yml` — build, `checks`, `code-quality`) and run 4226 (`pr-bump-preview.yml`). The bump preview comment confirms no commit here is bump-eligible, so merging cannot cut a release. Unproven by this PR, because a pull request cannot meet their triggers: `build-version.yml` (push to `main`), `publish.yml` (tag push), `bump.yml` (`workflow_call`), and the `${{ vars.INFISICAL_DOMAIN }}` substitution. Those first execute on merge. ## Known-stale, pre-existing `README.md` points at `.forgejo/workflows/build-push.yaml`, which does not exist under any name and did not before this rebuild either. Left alone rather than fixed here. Committed with inert types throughout.
ci: rebuild from templates on the docker base with release plumbing
All checks were successful
PR Bump Preview / Preview version bump (pull_request) Successful in 7s
Test Build / Test build image (pull_request) Successful in 1m1s
Test Build / checks (pull_request) Successful in 6s
Test Build / code-quality (pull_request) Successful in 0s
5314f5246c

Commitizen bump preview

No commits in this PR are eligible for a version bump.

<!-- commitizen-bump-preview --> ## Commitizen bump preview No commits in this PR are eligible for a version bump.
docs: keep the bump.yml adoption readme through the template rebuild
All checks were successful
PR Bump Preview / Preview version bump (pull_request) Successful in 6s
Test Build / Test build image (pull_request) Successful in 15s
Test Build / checks (pull_request) Successful in 5s
Test Build / code-quality (pull_request) Successful in 0s
7693de9fa3
gravityfargo deleted branch chore/template-rebuild 2026-08-02 00:03:45 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ModernLeft/commitizen-ci!21
No description provided.