zuul-jobs/dib-elements/nodepool-base/install.d/06-record-builddate
James E. Blair 7521476a99 Copy DIB elements from project-config
This commit is a verbatim copy of the nodepool/elements directory
in the openstack/project-config repo.

Change-Id: I86768fcda43f2997700ce748ba7118a2ab2d43f0
2024-09-12 08:40:30 -07:00

13 lines
285 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
# Put a timestamp in the image file of the date the image was built.
# This is echoed into the logs on each run for easy cross-reference
date --utc "+%Y-%m-%d %H:%M" > /etc/dib-builddate.txt