mirror of https://github.com/docker/cli.git
Merge pull request #4368 from thaJeztah/24.0_backport_update_buildx_0.11
[24.0 backport] Dockerfile: update gotestsum to v1.10.0, buildx v0.11.0
This commit is contained in:
commit
05fabe63ba
|
@ -5,8 +5,8 @@ ARG GO_VERSION=1.20.5
|
||||||
ARG ALPINE_VERSION=3.17
|
ARG ALPINE_VERSION=3.17
|
||||||
ARG XX_VERSION=1.1.1
|
ARG XX_VERSION=1.1.1
|
||||||
ARG GOVERSIONINFO_VERSION=v1.3.0
|
ARG GOVERSIONINFO_VERSION=v1.3.0
|
||||||
ARG GOTESTSUM_VERSION=v1.8.2
|
ARG GOTESTSUM_VERSION=v1.10.0
|
||||||
ARG BUILDX_VERSION=0.10.4
|
ARG BUILDX_VERSION=0.11.0
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
|
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
ARG GO_VERSION=1.20.5
|
ARG GO_VERSION=1.20.5
|
||||||
ARG ALPINE_VERSION=3.17
|
ARG ALPINE_VERSION=3.17
|
||||||
|
|
||||||
ARG BUILDX_VERSION=0.10.4
|
ARG BUILDX_VERSION=0.11.0
|
||||||
FROM docker/buildx-bin:${BUILDX_VERSION} AS buildx
|
FROM docker/buildx-bin:${BUILDX_VERSION} AS buildx
|
||||||
|
|
||||||
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golang
|
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS golang
|
||||||
|
@ -18,7 +18,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||||
&& gofumpt --version
|
&& gofumpt --version
|
||||||
|
|
||||||
FROM golang AS gotestsum
|
FROM golang AS gotestsum
|
||||||
ARG GOTESTSUM_VERSION=v1.8.2
|
ARG GOTESTSUM_VERSION=v1.10.0
|
||||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||||
--mount=type=cache,target=/go/pkg/mod \
|
--mount=type=cache,target=/go/pkg/mod \
|
||||||
--mount=type=tmpfs,target=/go/src/ \
|
--mount=type=tmpfs,target=/go/src/ \
|
||||||
|
|
Loading…
Reference in New Issue