ci: caches, prebuilt linters, image from the built binaries
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 4m38s
ci / build (pull_request) Canceled after 0s
ci / image (pull_request) Canceled after 0s
ci / test (pull_request) Canceled after 5m37s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 4m38s
ci / build (pull_request) Canceled after 0s
ci / image (pull_request) Canceled after 0s
ci / test (pull_request) Canceled after 5m37s
- Go module/build cache, golangci-lint cache and npm cache in the runners' S3 cache for lint, test and build; only main saves (one entry per commit), PRs and tags restore; release restores the build cache - golangci-lint from the release tarball (sha256-checked) instead of compiling it with go install on every run - shellcheck from its static release binary instead of apt-get on every run - the image job packs the build job's amd64 binaries (Dockerfile.ci, distroless, same entrypoint) with the runner's Docker daemon instead of Kaniko rebuilding frontend and Go from the git context; Dockerfile stays for local/make builds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
efd2f2d793
commit
b5864632bb
3 files changed
+138
-44
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# CI image: packs the binaries the build job already compiled (dist/linux_amd64)
|
||||
# instead of building frontend and Go a second time. `make image` and local
|
||||
# builds keep using Dockerfile, which builds everything from source.
|
||||
FROM gcr.io/distroless/static-debian12:nonroot@sha256:afa5c872c891853ca7fcf1f12c3edb23f7eeef36189728842dd51042ff57f7ab
|
||||
COPY dist/linux_amd64/ /usr/local/bin/
|
||||
USER nonroot
|
||||
ENTRYPOINT ["/usr/local/bin/api"]
|
||||
Reference in new issue
Block a user