Merge pull request #3659 from crazy-max/fix-mod-outdated

bake: use no-cache-filter for outdated stage
This commit is contained in:
Sebastiaan van Stijn
2022-06-05 17:29:42 +02:00
committed by GitHub
2 changed files with 1 additions and 5 deletions
+1 -4
View File
@@ -110,10 +110,7 @@ target "mod-outdated" {
inherits = ["_common"]
dockerfile = "./dockerfiles/Dockerfile.vendor"
target = "outdated"
args = {
// used to invalidate cache (more info https://github.com/moby/buildkit/issues/1213)
UUID = uuidv4()
}
no-cache-filter = ["outdated"]
output = ["type=cacheonly"]
}
-1
View File
@@ -35,7 +35,6 @@ EOT
FROM psampaz/go-mod-outdated:${MODOUTDATED_VERSION} AS go-mod-outdated
FROM base AS outdated
ARG UUID
RUN --mount=target=.,rw \
--mount=target=/go/pkg/mod,type=cache \
--mount=from=go-mod-outdated,source=/home/go-mod-outdated,target=/usr/bin/go-mod-outdated \