ci: ship the binaries the gate built, and stop rebuilding archied

The release gate stamps the version into `task build`, and the
distribution step packages those binaries instead of compiling the tree
a second time with different flags. `task build` is static to match.

The image builds keep Go's compile cache between runs. canary and
promote take archied from the published edge image. The Woodpecker gate
and pull-request check keep Go's caches on the host.

Also: one Node version, the distribution waits for the archied image,
release notes wait for the signed release and carry the prerelease flag.
This commit is contained in:
sam committed 2026-11-10 10:37:03 +00:00
1 parent c3e64e5485
commit b137942b35
11 files changed
+152 -103

No files matched your search

+4 -1
View File
@@ -231,6 +231,9 @@ tasks:
build:
desc: Build archie services and agent binaries
deps: [ui]
# Static, like the images: a release ships the binaries its gate built.
env:
CGO_ENABLED: "0"
vars:
GATEWAY_VERSION: '{{.GATEWAY_VERSION | default .VERSION}}'
RUNTIME_VERSION: '{{.RUNTIME_VERSION | default .VERSION}}'
@@ -262,7 +265,7 @@ tasks:
# binary reports the same version.
- for: [archied, archie-gateway, archie-state-store, archie-ui, archie-messaging]
cmd: go build -trimpath -ldflags "{{.SERVICE_LDFLAGS}}" -o {{.BIN_DIR}}/{{.ITEM}} ./cmd/{{.ITEM}}
- go build -trimpath -ldflags "-X github.com/samcharles93/archie-core/internal/app/agentworker.version={{.RUNTIME_VERSION}} -X github.com/samcharles93/archie-core/internal/installtype.buildType=binary" -o {{.BIN_DIR}}/archie-agent ./cmd/archie-agent
- go build -trimpath -ldflags "{{.SERVICE_LDFLAGS}} -X github.com/samcharles93/archie-core/internal/app/agentworker.version={{.RUNTIME_VERSION}}" -o {{.BIN_DIR}}/archie-agent ./cmd/archie-agent
test:
desc: Run Go tests; the release gate passes TEST_FLAGS=-count=1