ci: build and test each tree once
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Skipped
Release / Build hub image (amd64) (push) Skipped
Release / Build probe image (amd64) (push) Skipped
Release / Build hub image (arm64) (push) Skipped
Release / Build probe image (arm64) (push) Skipped
Release / Publish tags (probe) (push) Successful in 16s
Release / Publish tags (hub) (push) Successful in 17s
Release / Gitea release (push) Skipped
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Skipped
Release / Build hub image (amd64) (push) Skipped
Release / Build probe image (amd64) (push) Skipped
Release / Build hub image (arm64) (push) Skipped
Release / Build probe image (arm64) (push) Skipped
Release / Publish tags (probe) (push) Successful in 16s
Release / Publish tags (hub) (push) Successful in 17s
Release / Gitea release (push) Skipped
The release ran per ref, so main and a tag pushed together both planned before any image existed and built everything twice; it also re-ran the whole CI that the pull request had already passed on the same commit, and the PR CI built the images a third time. Now: one release queue (the tag waits for main and only re-points tags), the release skips CI when the pull request already passed for this commit, and the PR CI no longer builds images (the release builds once per input hash and smoke-tests before publishing). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dc8e390dba
commit
7c92d4b359
2 files changed
+25
-20
No files matched your search
+2
-17
@@ -80,20 +80,5 @@ jobs:
|
||||
export PATH="$PATH:$(go env GOPATH)/bin"
|
||||
govulncheck ./...
|
||||
|
||||
image:
|
||||
name: Docker images (build and smoke test)
|
||||
if: ${{ gitea.event_name == 'pull_request' }}
|
||||
runs-on: linux-arm64
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- name: Build hub
|
||||
run: docker build --target hub -t "urutau-ci:${{ gitea.run_id }}" .
|
||||
- name: Build probe
|
||||
run: docker build --target probe -t "urutau-probe-ci:${{ gitea.run_id }}" .
|
||||
- name: Smoke test (hub)
|
||||
run: scripts/smoke-image.sh "urutau-ci:${{ gitea.run_id }}"
|
||||
- name: Smoke test (probe, under 15 MB)
|
||||
run: scripts/smoke-probe.sh "urutau-probe-ci:${{ gitea.run_id }}"
|
||||
- name: Clean up
|
||||
if: always()
|
||||
run: docker rmi -f "urutau-ci:${{ gitea.run_id }}" "urutau-probe-ci:${{ gitea.run_id }}" >/dev/null 2>&1 || true
|
||||
# No image build here: the release builds each image once per input hash,
|
||||
# natively per architecture, and smoke-tests it before publishing any tag.
|
||||
Reference in new issue
Block a user