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:
Родитель
6e6be487d6
Коммит
bc5261a1b4
|
@ -34,9 +34,11 @@ if [ -z "$version" ]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
timestamp="${2:-$(date -u +%s)}"
|
||||
|
||||
make distclean
|
||||
docker build \
|
||||
--build-arg SOURCE_DATE_EPOCH="$(date -u +%s)" \
|
||||
--build-arg SOURCE_DATE_EPOCH="$timestamp" \
|
||||
--build-arg UID="$(id -u)" \
|
||||
--build-arg GID="$(id -g)" \
|
||||
-t curl/curl .
|
||||
|
|
Загрузка…
Ссылка в новой задаче