New builds since this page loaded.
Compare two builds of registry.gitlab.com/ci-accelerator/ci-accelerator
this build#3028727227 · 4 Nov 19:26 UTC Your change
compared with#3080185784 · 17 Nov 17:11 UTC From cache
Pick another build
The builds
the commits compared in GitLab| Earlier #3028727227 · 4 Nov 19:26 UTC Your change this build | Later #3080185784 · 17 Nov 17:11 UTC From cache compared with | |
|---|---|---|
| Time | 32 s | 6.0 s |
| Steps run | 12 of 22 | 0 of 21 |
| Commit | 447fc9e1 (release 0.5.1) | a09cff51 (component: output-prefix without a regex GitLab 17.9 refuses) |
| Node | mdkjr | 7ljc8 |
| Build context sent | 2.1 MiB | 3.4 MiB |
Build arguments
Neither build set a build argument.
Dockerfile
# docker buildx build -f cmd/ci-accelerator/Dockerfile .
# Pure Go (no cgo): one static binary on a distroless base, non-root.
- FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27.3-trixie@sha256:fbb7ae40b62ff8afe31662df570d39b4f5052ac32b90dae8e60d7657a20a74f4 AS build
+ FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.27.4-trixie@sha256:b54b2639de8c1bfe538ec5ffc45f29b1932235ac5f6d63c059853646677112d9 AS build
ARG TARGETOS TARGETARCH
# The version the binary reports: the image tag (v<appVersion> for a
…
# 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.
+ # /licenses/<module path>/: the module's own and those of the folders on
+ # the way from each linked package up to the module's root (forked or
+ # vendored code keeps its licence there), at the same relative paths; Go's
+ # own (the standard library and runtime are in every Go binary) under
+ # /licenses/go/; and the project's own. /licenses/README lists the
+ # modules, their versions and where their source is (MPL-2.0 asks that its
+ # recipients are told), naming the MPL-2.0 ones.
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
+ GOOS=$TARGETOS GOARCH=$TARGETARCH go list -deps -f '{{with .Module}}{{if not .Main}}{{.Path}} {{.Version}} {{.Dir}}{{end}}{{end}}' ./cmd/ci-accelerator \
+ | sort -u > /tmp/modules \
+ && GOOS=$TARGETOS GOARCH=$TARGETARCH go list -deps -f '{{with .Module}}{{if not .Main}}{{.Path}} {{.Dir}} {{$.Dir}}{{end}}{{end}}' ./cmd/ci-accelerator \
+ | sort -u > /tmp/packages \
+ && while read -r path moddir dir; do \
+ while :; do \
+ for f in "$dir"/LICENSE* "$dir"/LICENCE* "$dir"/COPYING* "$dir"/NOTICE* "$dir"/*-LICENSE*; do \
+ [ ! -f "$f" ] || { to="/out/licenses/$path${dir#"$moddir"}"; mkdir -p "$to"; cp "$f" "$to/"; }; \
+ done; \
+ case "$dir" in "$moddir"/*) dir=$(dirname "$dir") ;; *) break ;; esac; \
+ done; \
+ done < /tmp/packages \
+ && while read -r path version dir; do \
+ [ -n "$(find "/out/licenses/$path" -maxdepth 1 -type f 2>/dev/null)" ] || { echo "no licence file in $path ($dir)" >&2; exit 1; }; \
+ done < /tmp/modules \
+ && mkdir -p /out/licenses/go && cp "$(go env GOROOT)/LICENSE" /out/licenses/go/LICENSE \
+ && { echo "/ci-accelerator is Apache-2.0 (ci-accelerator/LICENSE). It links the Go modules below, unmodified;"; \
+ echo "each one's licence and notices are in the directory of its path. The source of each, at the"; \
+ echo "version listed, is published by the Go module proxy: https://proxy.golang.org/<path>/@v/<version>.zip"; \
+ echo "(also: go mod download <path>@<version>)."; \
+ echo "It also links the Go standard library and runtime of $(go env GOVERSION): its licence is go/LICENSE."; \
+ mpl=$(grep -rlE --include=LICENSE --include=LICENSE.txt --include=LICENSE.md 'Mozilla Public License,? [Vv]ersion 2\.0' /out/licenses | sed -e 's|^/out/licenses/||' -e 's|/[^/]*$||' | sort -u); \
+ [ -z "$mpl" ] || { echo; echo "Under MPL-2.0 (its source as above):"; for m in $mpl; do grep "^$m " /tmp/modules | cut -d' ' -f1,2; done; }; \
+ echo; echo "Modules (path version):"; cut -d' ' -f1,2 /tmp/modules; } > /out/licenses/README
- 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
Steps
by their place in the Dockerfile| Step | Earlier this build | Later compared with | Time |
|---|---|---|---|
| [src 1/6] golang:1.27.4-trixie - golang:1.27.3-trixie |
base image 0.0 s | base image 0.0 s | |
| [src 2/6] WORKDIR /src | from cache 0.0 s | 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 | from cache 0.0 s | from cache 0.0 s | |
| [linux/amd64 build 4/9] RUN --mount=type=cache,target=/go/pkg/mod go mod download | from cache 0.0 s | from cache 0.0 s | |
| [linux/amd64->arm64 build 5/9] COPY cmd cmd | from cache 0.0 s | from cache 0.0 s | |
| [linux/amd64 build 5/9] COPY cmd cmd | from cache 0.0 s | from cache 0.0 s | |
| [linux/amd64->arm64 build 6/9] COPY internal internal | built 0.1 s | from cache 0.0 s | |
| [linux/amd64 build 6/9] COPY internal internal | built 0.1 s | 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 | built 14 s | from cache 0.0 s | −14 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 | built 15 s | from cache 0.0 s | −15 s |
| [linux/amd64->arm64 build 8/9] COPY LICENSE /out/licenses/ci-accelerator/LICENSE | built 0.1 s | from cache 0.0 s | |
| [linux/amd64 build 8/9] COPY LICENSE /out/licenses/ci-accelerator/LICENSE | built 0.0 s | 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}} {{.Version}} {{.Dir}}{{end}}{{end}}' ./cmd/ci-accelerator | sort -u > /tmp/modules && GOOS=linux GOARCH=arm64 go list -deps -f '{{with .Module}}{{if not .Main}}{{.Path}} {{.Dir}} {{$.Dir}}{{end}}{{end}}' ./cmd/ci-accelerator | sort -u > /tmp/packages && while read -r path moddir dir; do while :; do for f in "$dir"/LICENSE* "$dir"/LICENCE* "$dir"/COPYING* "$dir"/NOTICE* "$dir"/*-LICENSE*; do [ ! -f "$f" ] || { to="/out/licenses/$path${dir#"$moddir"}"; mkdir -p "$to"; cp "$f" "$to/"; }; done; case "$dir" in "$moddir"/*) dir=$(dirname "$dir") ;; *) break ;; esac; done; done < /tmp/packages && while read -r path version dir; do [ -n "$(find "/out/licenses/$path" -maxdepth 1 -type f 2>/dev/null)" ] || { echo "no licence file in $path ($dir)" >&2; exit 1; }; done < /tmp/modules && mkdir -p /out/licenses/go && cp "$(go env GOROOT)/LICENSE" /out/licenses/go/LICENSE && { echo "/ci-accelerator is Apache-2.0 (ci-accelerator/LICENSE). It links the Go modules below, unmodified;"; echo "each one's licence and notices are in the directory of its path. The source of each, at the"; echo "version listed, is published by the Go module proxy: https://proxy.golang.org/<path>/@v/<version>.zip"; echo "(also: go mod download <path>@<version>)."; echo "It also links the Go standard library and runtime of $(go env GOVERSION): its licence is go/LICENSE."; mpl=$(grep -rlE --include=LICENSE --include=LICENSE.txt --include=LICENSE.md 'Mozilla Public License,? [Vv]ersion 2\.0' /out/licenses | sed -e 's|^/out/licenses/||' -e 's|/[^/]*$||' | sort -u); [ -z "$mpl" ] || { echo; echo "Under MPL-2.0 (its source as above):"; for m in $mpl; do grep "^$m " /tmp/modules | cut -d' ' -f1,2; done; }; echo; echo "Modules (path version):"; cut -d' ' -f1,2 /tmp/modules; } > /out/licenses/README - 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 |
built 5.3 s | from cache 0.0 s | −5.3 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}} {{.Version}} {{.Dir}}{{end}}{{end}}' ./cmd/ci-accelerator | sort -u > /tmp/modules && GOOS=linux GOARCH=amd64 go list -deps -f '{{with .Module}}{{if not .Main}}{{.Path}} {{.Dir}} {{$.Dir}}{{end}}{{end}}' ./cmd/ci-accelerator | sort -u > /tmp/packages && while read -r path moddir dir; do while :; do for f in "$dir"/LICENSE* "$dir"/LICENCE* "$dir"/COPYING* "$dir"/NOTICE* "$dir"/*-LICENSE*; do [ ! -f "$f" ] || { to="/out/licenses/$path${dir#"$moddir"}"; mkdir -p "$to"; cp "$f" "$to/"; }; done; case "$dir" in "$moddir"/*) dir=$(dirname "$dir") ;; *) break ;; esac; done; done < /tmp/packages && while read -r path version dir; do [ -n "$(find "/out/licenses/$path" -maxdepth 1 -type f 2>/dev/null)" ] || { echo "no licence file in $path ($dir)" >&2; exit 1; }; done < /tmp/modules && mkdir -p /out/licenses/go && cp "$(go env GOROOT)/LICENSE" /out/licenses/go/LICENSE && { echo "/ci-accelerator is Apache-2.0 (ci-accelerator/LICENSE). It links the Go modules below, unmodified;"; echo "each one's licence and notices are in the directory of its path. The source of each, at the"; echo "version listed, is published by the Go module proxy: https://proxy.golang.org/<path>/@v/<version>.zip"; echo "(also: go mod download <path>@<version>)."; echo "It also links the Go standard library and runtime of $(go env GOVERSION): its licence is go/LICENSE."; mpl=$(grep -rlE --include=LICENSE --include=LICENSE.txt --include=LICENSE.md 'Mozilla Public License,? [Vv]ersion 2\.0' /out/licenses | sed -e 's|^/out/licenses/||' -e 's|/[^/]*$||' | sort -u); [ -z "$mpl" ] || { echo; echo "Under MPL-2.0 (its source as above):"; for m in $mpl; do grep "^$m " /tmp/modules | cut -d' ' -f1,2; done; }; echo; echo "Modules (path version):"; cut -d' ' -f1,2 /tmp/modules; } > /out/licenses/README - 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 |
built 3.3 s | from cache 0.0 s | −3.3 s |
| [linux/arm64 stage-1 1/3] gcr.io/distroless/static-debian13:nonroot | base image 19 s | base image 0.0 s | −19 s |
| [linux/amd64 stage-1 1/3] gcr.io/distroless/static-debian13:nonroot | base image 19 s | base image 0.0 s | −19 s |
| [linux/arm64 stage-1 2/3] COPY --from=build /out/ci-accelerator /ci-accelerator | built 0.1 s | from cache 0.0 s | |
| [linux/amd64 stage-1 2/3] COPY --from=build /out/ci-accelerator /ci-accelerator | built 0.2 s | from cache 0.0 s | |
| [linux/arm64 stage-1 3/3] COPY --from=build /out/licenses /licenses | built 0.1 s | from cache 0.0 s | |
| [linux/amd64 stage-1 3/3] COPY --from=build /out/licenses /licenses | built 0.1 s | from cache 0.0 s | |
| [linux/amd64->arm64 build 3/9] COPY go.mod go.sum ./ | from cache 0.0 s | not reported | |
| [src 5/6] COPY cmd cmd | 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- #3081073309 · 17 Nov 20:40 UTC From cache
- #3080979734 · 17 Nov 20:17 UTC From cache
- #3080877764 · 17 Nov 19:55 UTC From cache
- #3080770917 · 17 Nov 19:30 UTC From cache
- #3080743308 · 17 Nov 19:24 UTC From cache
- #3080633027 · 17 Nov 19:00 UTC Your change
- #3080506158 · 17 Nov 18:31 UTC From cache
- #3080383391 · 17 Nov 18:03 UTC Your change
- #3080357985 · 17 Nov 17:57 UTC From cache
- #3080185784 · 17 Nov 17:11 UTC From cache compared with now
- #3080127810 · 17 Nov 16:58 UTC Your change
- #3080087619 · 17 Nov 16:49 UTC Your change
- #3080049226 · 17 Nov 16:39 UTC From cache
- #3080012584 · 17 Nov 16:31 UTC Your change
- #3077496388 · 17 Nov 06:26 UTC From cache
- #3076264583 · 16 Nov 22:36 UTC Your change
- #3076093296 · 16 Nov 22:05 UTC From cache
- #3075965868 · 16 Nov 21:35 UTC Your change
- #3068661145 · 14 Nov 17:09 UTC From cache
- #3068626025 · 14 Nov 16:49 UTC Your change
- #3068173423 · 14 Nov 11:40 UTC From cache
- #3068143035 · 14 Nov 11:18 UTC From cache
- #3068079885 · 14 Nov 10:36 UTC From cache
- #3068051469 · 14 Nov 10:15 UTC From cache
- #3068033599 · 14 Nov 10:05 UTC Your change
- #3048598282 · 10 Nov 08:16 UTC From cache
- #3048530287 · 10 Nov 07:56 UTC From cache
- #3048451501 · 10 Nov 07:25 UTC From cache
- #3047271120 · 9 Nov 22:40 UTC From cache
- #3047218600 · 9 Nov 22:20 UTC From cache