mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-12-10 05:42:36 +00:00
Update BUILD_DATE format to include seconds
* Comply with all standards (RFC 3339, ISO 8601, and HTML). * Reduce ambiguity. * Ensure a fully compliant `org.opencontainers.image.created`. (fix artifacthub error)
This commit is contained in:
parent
bdea0cf05a
commit
4744eeb3ef
2
build.sh
2
build.sh
|
|
@ -223,7 +223,7 @@ fi
|
||||||
###
|
###
|
||||||
# Variables for labelling the docker image
|
# Variables for labelling the docker image
|
||||||
###
|
###
|
||||||
BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M+00:00')"
|
BUILD_DATE="$(date -u '+%Y-%m-%dT%H:%M:%S+00:00')"
|
||||||
|
|
||||||
if [ -d ".git" ] && [ -z "${SKIP_GIT}" ]; then
|
if [ -d ".git" ] && [ -z "${SKIP_GIT}" ]; then
|
||||||
GIT_REF="$(git rev-parse HEAD)"
|
GIT_REF="$(git rev-parse HEAD)"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue