From: Ken Dreyer Date: Tue, 3 Dec 2024 17:37:11 +0000 (-0500) Subject: container/build.sh: use UTC dates for tags X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5327e5311375b90a1419bc1311329e848413dedf;p=ceph.git container/build.sh: use UTC dates for tags Do not rely on the builder host's local timezone setting. Signed-off-by: Ken Dreyer (cherry picked from commit fb4ec711176d5f87c3ab7d02d64d8e16dea58313) --- diff --git a/container/build.sh b/container/build.sh index b3044ff9cfb0f..d7712524e4dce 100755 --- a/container/build.sh +++ b/container/build.sh @@ -142,7 +142,7 @@ eval ${vars} fromtag=${CEPH_CONTAINER_FROM_IMAGE##*/} # translate : to - fromtag=${fromtag/:/-} -builddate=$(date +%Y%m%d) +builddate=$(date -u +%Y%m%d) local_tag=${fromtag}-${CEPH_CONTAINER_CEPH_REF}-${CEPH_CONTAINER_ARCH}-${builddate} repopath=${CONTAINER_REPO_HOSTNAME}/${CONTAINER_REPO_ORGANIZATION}