-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: force cache bust when --no-cache used (#4157)
fixes #2593 Signed-off-by: Alex Couture-Beil <[email protected]>
- Loading branch information
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
VERSION 0.8 | ||
|
||
FROM alpine:3.18 | ||
WORKDIR /work-der-work | ||
|
||
build: | ||
COPY +dep2/out dep2 | ||
COPY +dep1/out dep1 | ||
RUN rm dep2 | ||
SAVE ARTIFACT dep1 | ||
|
||
dep1: | ||
COPY some-file . # required to trigger bug | ||
COPY +dep2/out dep2 | ||
RUN cp dep2 out | ||
SAVE ARTIFACT out | ||
|
||
dep2: | ||
RUN --no-cache head -c 20 /dev/urandom | base64 > out | ||
SAVE ARTIFACT out |