Replace the pipeline template with a marker: the config is served by the update server

This commit is contained in:
2026-08-06 07:59:57 +02:00
parent d9b39718db
commit 0662c5f600
3 changed files with 17 additions and 82 deletions
+11 -10
View File
@@ -4,13 +4,11 @@ CI/CD templates for Commodore 64 (ACME + VICE) game projects, in the same
spirit as [tic80-tools](../tic80-tools).
- `example-makefile.make` — project Makefile: local dev targets
(`deps`, `build`, `run`, `clear`, `rebuild`, `rebuildrun`) plus the
Woodpecker pipeline targets (`ci-version`, `ci-build`, `ci-artifact`,
`ci-publish`).
- `example-woodpecker.yaml` — Woodpecker pipeline: version → build
(Debian, `apt install acme`) → artifact (HTTP POST to `/build/upload`) →
publish (calls the teletypegames `/build/publish` endpoint with
`platform=c64`).
(`deps`, `build`, `run`, `clear`, `rebuild`, `rebuildrun`).
- `example-woodpecker.yaml` — a one-line marker (`platform: c64`): the
full pipeline (version → build → artifact → publish) is served by the update server's Woodpecker
configuration extension — preview it with
`curl "https://teletypegames.org/build/config?platform=c64"`.
- `example-metadata.json` — catalog metadata; the `version` field drives
`ci-version`, the rest (`name`, `title`, `author`, `desc`, `site`,
`repo`, `license`) is what `SoftwareUpdater::C64Service` writes into
@@ -25,8 +23,11 @@ spirit as [tic80-tools](../tic80-tools).
`TARGET` if the .prg name differs from `$(PROJECT).prg`).
2. Copy `example-metadata.json` to `metadata.json` and fill it in;
`name` must match `PROJECT`.
3. Copy `example-woodpecker.yaml` to `.woodpecker.yaml` and add the
`update_secret_key` secret in Woodpecker.
3. Copy `example-woodpecker.yaml` to `.woodpecker.yaml` (a one-line marker — the
pipeline itself is served by the update server; add `name:` when the
software name differs from the repo name) and add the
`application_token` secret in Woodpecker (an ApplicationToken with
the `update` + `upload` scopes, created in the admin).
4. Copy `example-tasks.json` to `.vscode/tasks.json`.
## Builder image
@@ -42,7 +43,7 @@ docker build --platform linux/amd64 -f builder.Dockerfile \
docker push git.teletypegames.org/internal/c64-builder:latest
```
The pipeline uploads `$(PROJECT)-$(VERSION).prg` and
The served pipeline uploads `$(PROJECT)-$(VERSION).prg` and
`$(PROJECT)-$(VERSION).metadata.json` via `/build/upload`, then triggers
`/build/publish?platform=c64&name=$(PROJECT)&version=$(VERSION)`, which
creates/updates the Software row and a Release with `cartridge_path`.