From abc3f8dd979961f1dc7197784282f94cfd8cbf49 Mon Sep 17 00:00:00 2001 From: Witold Bedyk Date: Tue, 31 Jul 2018 11:07:06 +0200 Subject: [PATCH] Remove Docker tag based on timestamp As agreed in spec [1] we don't want to create and publish tags based on timestamp. Story: 2001694 Task: 23322 [1] http://specs.openstack.org/openstack/monasca-specs/specs/rocky/approved/monasca-services-in-docker.html#work-items Change-Id: Id72eb0ac7be7077bfaa8b8684a45494c09d92034 --- docker/example/build_image.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docker/example/build_image.sh b/docker/example/build_image.sh index 2e483197..1dccc488 100755 --- a/docker/example/build_image.sh +++ b/docker/example/build_image.sh @@ -131,8 +131,6 @@ COMMON_GIT_COMMIT=$(git -C "$COMMON_TMP_DIR" rev-parse HEAD) rm -rf "$COMMON_TMP_DIR" CREATION_TIME=$(date -u +"%Y-%m-%dT%H:%M:%SZ") -# Docker tags don't like colons so use shorter version of ISO 8601 for them. -CREATION_TIME_SHORT=$(date -d "$CREATION_TIME" -u +"%Y%m%dT%H%M%SZ") docker build --no-cache \ --build-arg CREATION_TIME="$CREATION_TIME" \ @@ -145,5 +143,4 @@ docker build --no-cache \ --build-arg COMMON_REPO="$COMMON_REPO" \ --build-arg COMMON_VERSION="$COMMON_VERSION" \ --build-arg COMMON_GIT_COMMIT="$COMMON_GIT_COMMIT" \ - --tag "$DOCKER_IMAGE":"$REPO_VERSION_CLEAN" \ - --tag "$DOCKER_IMAGE":"$REPO_VERSION_CLEAN"-"$CREATION_TIME_SHORT" . + --tag "$DOCKER_IMAGE":"$REPO_VERSION_CLEAN" .