Skip to content

Commit 6aa2e2b

Browse files
committed
rewrite-timestamp is now opt-in and source date epoch is opt out
We're seeing build stability issues with rewrite-timestamp=true typically "failed to solve: content digest ...: not found" There are open issues with that error in the buildkit repo. This commit was cherry-picked from #60
1 parent 88b7b75 commit 6aa2e2b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/y-build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ esac
118118

119119
[ -n "$SOURCE_DATE_EPOCH" ] || SOURCE_DATE_EPOCH=0
120120

121-
OUTPUT="type=image,name=$IMAGE,push=true,rewrite-timestamp=true"
121+
OUTPUT="type=image,name=$IMAGE,push=true"
122+
123+
[ "$REWRITE_TIMESTAMP" != "true" ] || OUTPUT="$OUTPUT,rewrite-timestamp=true"
124+
[ "$SOURCE_DATE_EPOCH" != "-1" ] || SOURCE_DATE_EPOCH=""
122125

123126
BUILD_TAG="$(echo $IMAGE | awk -F/ '{print $NF}' | awk -F@ '{print $1}' | awk -F: '{print $2}')"
124127

0 commit comments

Comments
 (0)