@@ -69,7 +69,7 @@ build:make:
69
69
CONTAINER_REGISTRY=registry.ddbuild.io \
70
70
CONTAINER_TAG=${TAG} \
71
71
CONTAINER_VERSION=${CI_COMMIT_SHA} \
72
- CONTAINER_BUILD_EXTRA_ARGS=" --platform=linux/amd64,linux/arm64 --label target=${TARGET_LABEL} --push" \
72
+ CONTAINER_BUILD_EXTRA_ARGS='-t $$(CONTAINER_NAME):$(CONTAINER_VERSION)'" --platform=linux/amd64,linux/arm64 --label target=${TARGET_LABEL} --push" \
73
73
SIGN_IMAGE=true
74
74
dependencies :
75
75
- build:make
@@ -131,24 +131,26 @@ release-prod-tag:
131
131
<< : *docker-hub-login
132
132
stage : release-public
133
133
tags : ["runner:docker"]
134
- image : registry.ddbuild.io/docker-notary:0.6.1
135
134
script :
136
- - docker pull registry.ddbuild.io/${CONTROLLER_IMAGE_NAME}:${TAG}
137
- - docker tag registry.ddbuild.io/${CONTROLLER_IMAGE_NAME}:${TAG} datadog/${CONTROLLER_IMAGE_NAME}:${TAG}
138
- - docker push datadog/${CONTROLLER_IMAGE_NAME}:${TAG}
139
- - docker pull registry.ddbuild.io/${INJECTOR_IMAGE_NAME}:${TAG}
140
- - docker tag registry.ddbuild.io/${INJECTOR_IMAGE_NAME}:${TAG} datadog/${INJECTOR_IMAGE_NAME}:${TAG}
141
- - docker push datadog/${INJECTOR_IMAGE_NAME}:${TAG}
142
- - docker pull registry.ddbuild.io/${HANDLER_IMAGE_NAME}:${TAG}
143
- - docker tag registry.ddbuild.io/${HANDLER_IMAGE_NAME}:${TAG} datadog/${HANDLER_IMAGE_NAME}:${TAG}
144
- - docker push datadog/${HANDLER_IMAGE_NAME}:${TAG}
135
+ - docker buildx create --use
136
+ - *install-make
137
+ - >
138
+ make docker-build-only-all \
139
+ CONTAINER_REGISTRY=docker.io/datadog \
140
+ CONTAINER_TAG=${TAG} \
141
+ CONTAINER_VERSION=${CI_COMMIT_SHA} \
142
+ CONTAINER_BUILD_EXTRA_ARGS="--platform=linux/amd64,linux/arm64 --label target=${TARGET_LABEL} --push" \
143
+ SIGN_IMAGE=false
144
+ dependencies :
145
+ - build:make
145
146
146
147
release-docker-hub-ref :
147
148
<< : *release-docker-hub
148
149
when : manual
149
150
except :
150
151
- tags
151
152
variables :
153
+ TARGET_LABEL : " prod"
152
154
TAG : " ${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}"
153
155
154
156
release-docker-hub-tag :
0 commit comments