ci-accelerator/ci-accelerator

Compare two builds of registry.gitlab.com/ci-accelerator/ci-accelerator

Earlier #3010592790 · 30 Oct 22:42 UTC From cache this buildLater #3047144016 · 9 Nov 21:55 UTC From cache compared with
Time6.1 s5.2 s
Steps run0 of 150 of 21
Commit2772902a (console: a step's panel closes on a click outside it and ca…)677e6374 (showcase: the go test build sees the API contract)
Nodelgscpmdkjr
Build context sent1.6 MiB2.1 MiB

Build arguments

Neither build set a build argument.

Dockerfile

CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
go build -trimpath -ldflags="-s -w -buildid= -X main.version=$VERSION -X main.commit=$COMMIT" -o /out/ci-accelerator ./cmd/ci-accelerator
+ # The licences and notices of every module linked into the binary (the
+ # Apache-2.0 ones ask for their NOTICE files to go with it), under
+ # /licenses/<module path>/, and the project's own.
+ COPY LICENSE /out/licenses/ci-accelerator/LICENSE
+ RUN --mount=type=cache,target=/go/pkg/mod \
+ GOOS=$TARGETOS GOARCH=$TARGETARCH go list -deps -f '{{with .Module}}{{if not .Main}}{{.Path}} {{.Dir}}{{end}}{{end}}' ./cmd/ci-accelerator \
+ | sort -u | while read -r path dir; do \
+ mkdir -p "/out/licenses/$path"; \
+ for f in "$dir"/LICENSE* "$dir"/LICENCE* "$dir"/COPYING* "$dir"/NOTICE*; do [ ! -f "$f" ] || cp "$f" "/out/licenses/$path/"; done; \
+ [ -n "$(ls "/out/licenses/$path")" ] || { echo "no licence file in $path ($dir)" >&2; exit 1; }; \
+ done
- FROM gcr.io/distroless/static-debian13:nonroot@sha256:18f4cc26c9ffa7f20a359298be7deadac5c607c8e03a02b8119f1a5fc2f82c99
+ FROM gcr.io/distroless/static-debian13:nonroot@sha256:25ac8f0c3b2334a9eb05452266bd4697864a8c8ef0ef71e5e6480d7f92868329
COPY --from=build /out/ci-accelerator /ci-accelerator
+ COPY --from=build /out/licenses /licenses
USER 65532:65532
ENTRYPOINT ["/ci-accelerator"]

Steps

by their place in the Dockerfile
StepEarlier this buildLater compared withTime
[linux/amd64 build 1/9] golang:1.27.3-trixie not reported base image 0.0 s
[linux/amd64 build 2/9] WORKDIR /src not reported from cache 0.0 s
[linux/amd64 build 3/9] COPY go.mod go.sum ./ not reported from cache 0.0 s
[linux/amd64->arm64 build 4/9] RUN --mount=type=cache,target=/go/pkg/mod go mod download not reported from cache 0.0 s
[linux/amd64 build 4/9] RUN --mount=type=cache,target=/go/pkg/mod go mod download not reported from cache 0.0 s
[linux/amd64->arm64 build 5/9] COPY cmd cmd not reported from cache 0.0 s
[linux/amd64 build 5/9] COPY cmd cmd not reported from cache 0.0 s
[linux/amd64->arm64 build 6/9] COPY internal internal not reported from cache 0.0 s
[linux/amd64 build 6/9] COPY internal internal not reported from cache 0.0 s
[linux/amd64->arm64 build 7/9] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -ldflags="-s -w -buildid= -X main.version=dev -X main.commit=" -o /out/ci-accelerator ./cmd/ci-accelerator not reported from cache 0.0 s
[linux/amd64 build 7/9] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w -buildid= -X main.version=dev -X main.commit=" -o /out/ci-accelerator ./cmd/ci-accelerator not reported from cache 0.0 s
[linux/amd64->arm64 build 8/9] COPY LICENSE /out/licenses/ci-accelerator/LICENSE not reported from cache 0.0 s
[linux/amd64 build 8/9] COPY LICENSE /out/licenses/ci-accelerator/LICENSE not reported from cache 0.0 s
[linux/amd64->arm64 build 9/9] RUN --mount=type=cache,target=/go/pkg/mod GOOS=linux GOARCH=arm64 go list -deps -f '{{with .Module}}{{if not .Main}}{{.Path}} {{.Dir}}{{end}}{{end}}' ./cmd/ci-accelerator | sort -u | while read -r path dir; do mkdir -p "/out/licenses/$path"; for f in "$dir"/LICENSE* "$dir"/LICENCE* "$dir"/COPYING* "$dir"/NOTICE*; do [ ! -f "$f" ] || cp "$f" "/out/licenses/$path/"; done; [ -n "$(ls "/out/licenses/$path")" ] || { echo "no licence file in $path ($dir)" >&2; exit 1; }; done not reported from cache 0.0 s
[linux/amd64 build 9/9] RUN --mount=type=cache,target=/go/pkg/mod GOOS=linux GOARCH=amd64 go list -deps -f '{{with .Module}}{{if not .Main}}{{.Path}} {{.Dir}}{{end}}{{end}}' ./cmd/ci-accelerator | sort -u | while read -r path dir; do mkdir -p "/out/licenses/$path"; for f in "$dir"/LICENSE* "$dir"/LICENCE* "$dir"/COPYING* "$dir"/NOTICE*; do [ ! -f "$f" ] || cp "$f" "/out/licenses/$path/"; done; [ -n "$(ls "/out/licenses/$path")" ] || { echo "no licence file in $path ($dir)" >&2; exit 1; }; done not reported from cache 0.0 s
[linux/amd64 stage-1 1/3] gcr.io/distroless/static-debian13:nonroot not reported base image 0.0 s
[linux/arm64 stage-1 1/3] gcr.io/distroless/static-debian13:nonroot not reported base image 0.0 s
[linux/arm64 stage-1 2/3] COPY --from=build /out/ci-accelerator /ci-accelerator not reported from cache 0.0 s
[linux/amd64 stage-1 2/3] COPY --from=build /out/ci-accelerator /ci-accelerator not reported from cache 0.0 s
[linux/arm64 stage-1 3/3] COPY --from=build /out/licenses /licenses not reported from cache 0.0 s
[linux/amd64 stage-1 3/3] COPY --from=build /out/licenses /licenses not reported from cache 0.0 s
[linux/amd64 build 1/7] golang:1.27.3-trixie base image 0.0 s not reported
[linux/amd64->arm64 build 2/7] WORKDIR /src from cache 0.0 s not reported
[linux/amd64->arm64 build 3/7] COPY go.mod go.sum ./ from cache 0.0 s not reported
[linux/amd64 build 4/7] RUN --mount=type=cache,target=/go/pkg/mod go mod download from cache 0.0 s not reported
[linux/amd64->arm64 build 4/7] RUN --mount=type=cache,target=/go/pkg/mod go mod download from cache 0.0 s not reported
[linux/amd64 build 5/7] COPY cmd cmd from cache 0.0 s not reported
[linux/amd64->arm64 build 5/7] COPY cmd cmd from cache 0.0 s not reported
[linux/amd64 build 6/7] COPY internal internal from cache 0.0 s not reported
[linux/amd64->arm64 build 6/7] COPY internal internal from cache 0.0 s not reported
[linux/amd64 build 7/7] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w -buildid= -X main.version=dev -X main.commit=" -o /out/ci-accelerator ./cmd/ci-accelerator from cache 0.0 s not reported
[linux/amd64->arm64 build 7/7] RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -ldflags="-s -w -buildid= -X main.version=dev -X main.commit=" -o /out/ci-accelerator ./cmd/ci-accelerator from cache 0.0 s not reported
[linux/arm64 stage-1 1/2] gcr.io/distroless/static-debian13:nonroot base image 0.0 s not reported
[linux/amd64 stage-1 1/2] gcr.io/distroless/static-debian13:nonroot base image 0.0 s not reported
[linux/amd64 stage-1 2/2] COPY --from=build /out/ci-accelerator /ci-accelerator from cache 0.0 s not reported
[linux/arm64 stage-1 2/2] COPY --from=build /out/ci-accelerator /ci-accelerator from cache 0.0 s not reported

Compare with another build of registry.gitlab.com/ci-accelerator/ci-accelerator

the last 30 · pick in the builds list