Skip to content

Commit 52dfa55

Browse files
committed
Extend the correct template -.-
Signed-off-by: Federico Busetti <[email protected]>
1 parent f3558f2 commit 52dfa55

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.gitlab_ci/_templates.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ variables:
5656
- export UNIX_TIMESTAMP=$(date -d "$CI_COMMIT_TIMESTAMP" +"$desired_format")
5757
- echo "Unix timestamp: $UNIX_TIMESTAMP"
5858
- 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" \
61-
--annotation "index:org.opencontainers.image.source=$CI_PROJECT_URL" \
62-
--annotation "index:org.opencontainers.image.created=$CI_JOB_STARTED_AT" \
63-
--tag $DOCKER_IMAGE_NAME:$PROMOTED_ENVIRONMENT-$UNIX_TIMESTAMP \
64-
- $DOCKER_IMAGE_FULL_TAG
59+
--annotation "index:org.opencontainers.image.version=$CI_COMMIT_SHORT_SHA" \
60+
--annotation "index:org.opencontainers.image.revision=$CI_COMMIT_SHA" \
61+
--annotation "index:org.opencontainers.image.source=$CI_PROJECT_URL" \
62+
--annotation "index:org.opencontainers.image.created=$CI_JOB_STARTED_AT" \
63+
--tag $DOCKER_IMAGE_NAME:$PROMOTED_ENVIRONMENT-$UNIX_TIMESTAMP \
64+
- $DOCKER_IMAGE_FULL_TAG
6565

6666
.python-typing:
6767
image: $DOCKER_IMAGE_FULL_TAG

.gitlab_ci/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ promote-dev:
77
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
88
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
99
extends:
10-
- .build-and-push-gitlab
10+
- .promote-image
1111
when: manual

0 commit comments

Comments
 (0)