mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
Mod outdated
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
00cb53d0ef
commit
df521e4e96
3
Makefile
3
Makefile
@ -53,4 +53,7 @@ docs:
|
|||||||
authors:
|
authors:
|
||||||
$(BUILDX_CMD) bake update-authors
|
$(BUILDX_CMD) bake update-authors
|
||||||
|
|
||||||
|
mod-outdated:
|
||||||
|
$(BUILDX_CMD) bake mod-outdated
|
||||||
|
|
||||||
.PHONY: shell binaries binaries-cross install release validate-all lint validate-vendor validate-docs validate-authors vendor docs authors
|
.PHONY: shell binaries binaries-cross install release validate-all lint validate-vendor validate-docs validate-authors vendor docs authors
|
||||||
|
@ -76,6 +76,13 @@ target "update-authors" {
|
|||||||
output = ["."]
|
output = ["."]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
target "mod-outdated" {
|
||||||
|
inherits = ["_common"]
|
||||||
|
dockerfile = "./hack/dockerfiles/vendor.Dockerfile"
|
||||||
|
target = "outdated"
|
||||||
|
output = ["type=cacheonly"]
|
||||||
|
}
|
||||||
|
|
||||||
target "test" {
|
target "test" {
|
||||||
inherits = ["_common"]
|
inherits = ["_common"]
|
||||||
target = "test-coverage"
|
target = "test-coverage"
|
||||||
|
@ -2,9 +2,11 @@
|
|||||||
|
|
||||||
ARG GO_VERSION=1.17.0
|
ARG GO_VERSION=1.17.0
|
||||||
|
|
||||||
FROM golang:${GO_VERSION}-alpine AS vendored
|
FROM golang:${GO_VERSION}-alpine AS base
|
||||||
RUN apk add --no-cache git rsync
|
RUN apk add --no-cache git rsync
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
|
FROM base AS vendored
|
||||||
RUN --mount=target=/context \
|
RUN --mount=target=/context \
|
||||||
--mount=target=.,type=tmpfs \
|
--mount=target=.,type=tmpfs \
|
||||||
--mount=target=/go/pkg/mod,type=cache <<EOT
|
--mount=target=/go/pkg/mod,type=cache <<EOT
|
||||||
@ -33,3 +35,10 @@ if [ -n "$(git status --porcelain -- go.mod go.sum vendor)" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
|
FROM psampaz/go-mod-outdated:v0.8.0 AS go-mod-outdated
|
||||||
|
FROM base AS outdated
|
||||||
|
RUN --mount=target=.,ro \
|
||||||
|
--mount=target=/go/pkg/mod,type=cache \
|
||||||
|
--mount=from=go-mod-outdated,source=/home/go-mod-outdated,target=/usr/bin/go-mod-outdated \
|
||||||
|
go list -mod=readonly -u -m -json all | go-mod-outdated -update -direct
|
||||||
|
Loading…
x
Reference in New Issue
Block a user