Skip to content

Commit

Permalink
rewrite-timestamp is now opt-in and source date epoch is opt out
Browse files Browse the repository at this point in the history
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
  • Loading branch information
solsson committed Mar 25, 2024
1 parent 88b7b75 commit 6aa2e2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/y-build
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ esac

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

OUTPUT="type=image,name=$IMAGE,push=true,rewrite-timestamp=true"
OUTPUT="type=image,name=$IMAGE,push=true"

[ "$REWRITE_TIMESTAMP" != "true" ] || OUTPUT="$OUTPUT,rewrite-timestamp=true"
[ "$SOURCE_DATE_EPOCH" != "-1" ] || SOURCE_DATE_EPOCH=""

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

Expand Down

0 comments on commit 6aa2e2b

Please sign in to comment.