build: add task dist, build the dashboard once, cache Go in image builds
`task dist` builds the binaries release.json names into dist/ with the compiler flags `build` uses, so after the gate has built bin/ it only links. `build` is now static (CGO_ENABLED=0), like what ships. `ui` runs once per task invocation: check built the dashboard, then build's dependency built it again under the Go steps that embed it. Both Dockerfiles compile with cache mounts for Go's module and build caches.
This commit is contained in:
1 parent
c3e64e5485
commit
b509397e8d
5 files changed
+49
-6
No files matched your search
+5
-2
@@ -71,7 +71,9 @@ The tag push runs `deploy.yml`:
|
||||
|
||||
- **Gate.** `task check TEST_FLAGS=-count=1` (uncached, including the
|
||||
Docker-backed tests `-short` skips) and `govulncheck`, then a check that the
|
||||
tag has a `[version]` section in `CHANGELOG.md`.
|
||||
tag has a `[version]` section in `CHANGELOG.md`. On a release the same task
|
||||
run also builds the binaries the zip ships (`task dist`), so nothing is
|
||||
compiled again after the gate.
|
||||
- **Images.** `archied:v<version>` and `archie-agent:v<version>` on a release
|
||||
tag; `archied:edge` and `archied:sha-<commit>` on any other push to `main`.
|
||||
`:latest` moves only on promotion, so it names the newest promoted release.
|
||||
@@ -92,7 +94,8 @@ release rather than committing the fix on top of a tagged one.
|
||||
## The canary
|
||||
|
||||
The canary is the production host, following `next`. Every quarter hour
|
||||
`canary.yml` runs `archied release canary check`, which reads the canary
|
||||
`canary.yml` takes `archied` from the published `archied:edge` image and runs
|
||||
`release canary check`, which reads the canary
|
||||
through its dashboard API and judges **the release the canary actually runs**,
|
||||
not the moving `next` tag:
|
||||
|
||||
|
||||
Reference in new issue
Block a user