From 44b52c54c0936639d9c57e6ff9eb8975dacf285f Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 9 Nov 2026 14:27:18 +1100 Subject: [PATCH] build(agent): bake task into the agent image so the repository gate never fetches it per run --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2ea9588f4..2314c823e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,6 +61,9 @@ ARG BUF_VERSION=1.72.0 # Pinned to the versions tools/proto.sh installs; buf generate shells out to them. ARG PROTOC_GEN_GO_VERSION=1.36.11 ARG PROTOC_GEN_GO_GRPC_VERSION=1.6.2 +# Repository gates run `task`; fetching it per run parks the task when the +# download fails. +ARG TASK_VERSION=3.54.0 RUN curl -fsSL "https://github.com/golangci/golangci-lint/releases/download/v${GOLANGCI_LINT_VERSION}/golangci-lint-${GOLANGCI_LINT_VERSION}-linux-amd64.tar.gz" \ | tar -xz -C /usr/local/bin --strip-components=1 \ @@ -69,6 +72,8 @@ RUN curl -fsSL "https://github.com/golangci/golangci-lint/releases/download/v${G "https://github.com/mvdan/gofumpt/releases/download/v${GOFUMPT_VERSION}/gofumpt_v${GOFUMPT_VERSION}_linux_amd64" && \ curl -fsSL -o /usr/local/bin/buf \ "https://github.com/bufbuild/buf/releases/download/v${BUF_VERSION}/buf-Linux-x86_64" && \ + curl -fsSL "https://github.com/go-task/task/releases/download/v${TASK_VERSION}/task_linux_amd64.tar.gz" \ + | tar -xz -C /usr/local/bin task && \ chmod +x /usr/local/bin/gofumpt /usr/local/bin/buf && \ GOBIN=/usr/local/bin go install "google.golang.org/protobuf/cmd/protoc-gen-go@v${PROTOC_GEN_GO_VERSION}" && \ GOBIN=/usr/local/bin go install "google.golang.org/grpc/cmd/protoc-gen-go-grpc@v${PROTOC_GEN_GO_GRPC_VERSION}" && \