dmaketgz: accept a SOURCE_DATE_EPOCH as an second argument
to make it easier to reproduce a tarball Closes #13573
This commit is contained in:
parent
6e6be487d6
commit
bc5261a1b4
@ -34,9 +34,11 @@ if [ -z "$version" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
timestamp="${2:-$(date -u +%s)}"
|
||||||
|
|
||||||
make distclean
|
make distclean
|
||||||
docker build \
|
docker build \
|
||||||
--build-arg SOURCE_DATE_EPOCH="$(date -u +%s)" \
|
--build-arg SOURCE_DATE_EPOCH="$timestamp" \
|
||||||
--build-arg UID="$(id -u)" \
|
--build-arg UID="$(id -u)" \
|
||||||
--build-arg GID="$(id -g)" \
|
--build-arg GID="$(id -g)" \
|
||||||
-t curl/curl .
|
-t curl/curl .
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user