Skip to content

Commit 1baada2

Browse files
committed
Prepare timestamp and add debug printout
Signed-off-by: Federico Busetti <[email protected]>
1 parent d4ca073 commit 1baada2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitlab_ci/_templates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ variables:
5252
services:
5353
- docker:$DOCKER_VERSION-dind
5454
script:
55-
# - desired_format="%s"
56-
# - export UNIX_TIMESTAMP=$(date -d "$CI_COMMIT_TIMESTAMP" + "$desired_format")
55+
# - export UNIX_TIMESTAMP=$(date -d "$CI_COMMIT_TIMESTAMP" -D "%Y-%m-%dT%H:%M:%SZ"+%s)
5756
# - echo "Unix timestamp - $UNIX_TIMESTAMP"
57+
- echo "Tagging $DOCKER_IMAGE_NAME:$PROMOTED_ENVIRONMENT-$CI_COMMIT_TIMESTAMP from $DOCKER_IMAGE_FULL_TAG"
5858
- docker buildx imagetools create
5959
--annotation "index:org.opencontainers.image.version=$CI_COMMIT_SHORT_SHA"
6060
--annotation "index:org.opencontainers.image.revision=$CI_COMMIT_SHA"

0 commit comments

Comments
 (0)