We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4ca073 commit 1baada2Copy full SHA for 1baada2
.gitlab_ci/_templates.yml
@@ -52,9 +52,9 @@ variables:
52
services:
53
- docker:$DOCKER_VERSION-dind
54
script:
55
-# - desired_format="%s"
56
-# - export UNIX_TIMESTAMP=$(date -d "$CI_COMMIT_TIMESTAMP" + "$desired_format")
+# - export UNIX_TIMESTAMP=$(date -d "$CI_COMMIT_TIMESTAMP" -D "%Y-%m-%dT%H:%M:%SZ"+%s)
57
# - echo "Unix timestamp - $UNIX_TIMESTAMP"
+ - echo "Tagging $DOCKER_IMAGE_NAME:$PROMOTED_ENVIRONMENT-$CI_COMMIT_TIMESTAMP from $DOCKER_IMAGE_FULL_TAG"
58
- docker buildx imagetools create
59
--annotation "index:org.opencontainers.image.version=$CI_COMMIT_SHORT_SHA"
60
--annotation "index:org.opencontainers.image.revision=$CI_COMMIT_SHA"
0 commit comments