mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #34176 from bmwiedemann/date
Allow to override build date
This commit is contained in:
commit
7e4f4d15fd
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ DEFAULT_BUNDLES=(
|
|||
)
|
||||
|
||||
VERSION=$(< ./VERSION)
|
||||
! BUILDTIME=$(date --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/')
|
||||
! BUILDTIME=$(date -u -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}" --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/')
|
||||
if [ "$DOCKER_GITCOMMIT" ]; then
|
||||
GITCOMMIT="$DOCKER_GITCOMMIT"
|
||||
elif command -v git &> /dev/null && [ -d .git ] && git rev-parse &> /dev/null; then
|
||||
|
|
Loading…
Add table
Reference in a new issue