Skip to content

Commit

Permalink
Merge pull request #3659 from crazy-max/fix-mod-outdated
Browse files Browse the repository at this point in the history
bake: use no-cache-filter for outdated stage
  • Loading branch information
thaJeztah authored Jun 5, 2022
2 parents 1c051c8 + 0f6a0eb commit b75c262
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

Expand Down
1 change: 0 additions & 1 deletion dockerfiles/Dockerfile.vendor
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit b75c262

Please sign in to comment.