Skip to content

Commit cbd6cd8

Browse files
committed
Dockerfile: update registry to v3.0.0
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 28fb74f commit cbd6cd8

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG CONTAINERD_VERSION=v2.2.5
55
# CONTAINERD_ALT_VERSION_... defines fallback containerd version for integration tests
66
ARG CONTAINERD_ALT_VERSION_21=v2.1.9
77
ARG CONTAINERD_ALT_VERSION_17=v1.7.33
8-
ARG REGISTRY_VERSION=v2.8.3
8+
ARG REGISTRY_VERSION=v3.0.0
99
ARG ROOTLESSKIT_VERSION=v3.0.1
1010
ARG CNI_VERSION=v1.9.1
1111
ARG STARGZ_SNAPSHOTTER_VERSION=v0.18.2
@@ -300,12 +300,9 @@ ARG TARGETPLATFORM
300300
RUN --mount=target=/root/.cache,type=cache <<EOT
301301
set -ex
302302
mkdir /out
303-
export GOPATH="$(pwd)/Godeps/_workspace:$GOPATH"
304-
GO111MODULE=off CGO_ENABLED=0 xx-go build -o /out/registry ./cmd/registry
305-
xx-verify --static /out/registry
306-
if [ "$(xx-info os)" = "windows" ]; then
307-
mv /out/registry /out/registry.exe
308-
fi
303+
ext=$(xx-go env GOEXE)
304+
CGO_ENABLED=0 xx-go build -o "/out/registry${ext}" ./cmd/registry
305+
xx-verify --static "/out/registry${ext}"
309306
EOT
310307

311308
FROM gobuild-base AS rootlesskit

0 commit comments

Comments
 (0)