Set mtime to get more deterministic builds

This commit is contained in:
Utku Demir
2020-06-11 12:44:04 +12:00
parent 560201da66
commit 4e0109f873
2 changed files with 52 additions and 15 deletions

View File

@@ -752,8 +752,9 @@ rec {
imageTag="${tag}"
''}
if [[ "$created" == "now" ]]; then
created="$(TZ=utc date --iso-8601="seconds")"
# convert "created" to iso format
if [[ "$created" != "now" ]]; then
created="$(date -Iseconds -d "$created")"
fi
# Create $maxLayers worth of Docker Layers, one layer per store path