Skip to content

Commit ad2bfcf

Browse files
committed
Dockerfile: remove binaries-linux-helper stage
Signed-off-by: CrazyMax <[email protected]>
1 parent 90edc05 commit ad2bfcf

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

.github/workflows/buildkit.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ jobs:
105105
./hack/cross
106106
env:
107107
PLATFORMS: ${{ env.PLATFORMS }},darwin/amd64,darwin/arm64,windows/amd64,windows/arm64
108-
RUNC_PLATFORMS: ${{ env.PLATFORMS }}
109108
CACHE_FROM: type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }}
110109
CACHE_TO: type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }}
111110

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,10 @@ RUN --mount=target=. --mount=target=/root/.cache,type=cache \
107107
CGO_ENABLED=0 xx-go build -ldflags "$(cat /tmp/.ldflags) -extldflags '-static'" -tags "osusergo netgo static_build seccomp ${BUILDKITD_TAGS}" -o /usr/bin/buildkitd ./cmd/buildkitd && \
108108
xx-verify --static /usr/bin/buildkitd
109109

110-
FROM scratch AS binaries-linux-helper
110+
FROM scratch AS binaries-linux
111111
COPY --link --from=runc /usr/bin/runc /buildkit-runc
112112
# built from https://github.com/tonistiigi/binfmt/releases/tag/buildkit%2Fv7.1.0-30
113113
COPY --link --from=tonistiigi/binfmt:buildkit-v7.1.0-30@sha256:45dd57b4ba2f24e2354f71f1e4e51f073cb7a28fd848ce6f5f2a7701142a6bf0 / /
114-
115-
FROM binaries-linux-helper AS binaries-linux
116114
COPY --link --from=buildctl /usr/bin/buildctl /
117115
COPY --link --from=buildkitd /usr/bin/buildkitd /
118116

hack/cross

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,5 @@ if [ -n "$PLATFORMS" ]; then
1010
platformFlag="--platform=$PLATFORMS"
1111
fi
1212

13-
if [ -n "$RUNC_PLATFORMS" ]; then
14-
buildxCmd build $cacheFromFlags $cacheToFlags \
15-
--target "binaries-linux-helper" \
16-
--platform "$RUNC_PLATFORMS" \
17-
$currentcontext
18-
fi
19-
2013
buildxCmd build $platformFlag $cacheFromFlags \
2114
$currentcontext

0 commit comments

Comments
 (0)