Skip to content

Commit 6894522

Browse files
chore: prevent actual gitlab pushes
1 parent 0cda5dc commit 6894522

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

.gitlab/scripts/build_image.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ docker buildx build \
4242
--platform $PLATFORM \
4343
-f .gitlab/scripts/${TARGET_IMAGE} \
4444
--tag "$DOCKER_TARGET_IMAGE:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}${SUFFIX}" \
45-
--push .
46-
printf "Image built and pushed to $DOCKER_TARGET_IMAGE:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}${SUFFIX} for $PLATFORM\n"
45+
.
46+
# --push .
47+
# printf "Image built and pushed to $DOCKER_TARGET_IMAGE:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}${SUFFIX} for $PLATFORM\n"

.gitlab/scripts/build_private_image.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ docker buildx build \
4747
-f .gitlab/scripts/${TARGET_IMAGE} \
4848
--tag "$DOCKER_TARGET_IMAGE:${IMAGE_TAG}${SUFFIX}" \
4949
--tag "$DOCKER_TARGET_IMAGE:${VERSION}${SUFFIX}" \
50-
--push .
50+
.
51+
# --push .
5152

52-
printf "Image built and pushed to $DOCKER_TARGET_IMAGE:${IMAGE_TAG}${SUFFIX} for arm64 and amd64\n"
53+
# printf "Image built and pushed to $DOCKER_TARGET_IMAGE:${IMAGE_TAG}${SUFFIX} for arm64 and amd64\n"

.gitlab/templates/pipeline.yaml.tpl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -277,21 +277,21 @@ build images ({{ $multi_arch_image_flavor.name }}):
277277
script:
278278
- .gitlab/scripts/build_image.sh
279279

280-
publish images ({{ $multi_arch_image_flavor.name }}):
281-
stage: publish
282-
rules:
283-
- if: '$CI_COMMIT_TAG =~ /^v.*/'
284-
needs:
285-
- build images ({{ $multi_arch_image_flavor.name }})
286-
when: manual
287-
trigger:
288-
project: DataDog/public-images
289-
branch: main
290-
strategy: depend
291-
variables:
292-
IMG_SOURCES: ${CI_DOCKER_TARGET_IMAGE}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}{{ $multi_arch_image_flavor.suffix }}
293-
IMG_DESTINATIONS: lambda-extension:${VERSION}{{ $multi_arch_image_flavor.suffix }},lambda-extension:latest{{ $multi_arch_image_flavor.suffix }}
294-
IMG_REGISTRIES: dockerhub,ecr-public,gcr-datadoghq
295-
IMG_SIGNING: false
280+
# publish images ({{ $multi_arch_image_flavor.name }}):
281+
# stage: publish
282+
# rules:
283+
# - if: '$CI_COMMIT_TAG =~ /^v.*/'
284+
# needs:
285+
# - build images ({{ $multi_arch_image_flavor.name }})
286+
# when: manual
287+
# trigger:
288+
# project: DataDog/public-images
289+
# branch: main
290+
# strategy: depend
291+
# variables:
292+
# IMG_SOURCES: ${CI_DOCKER_TARGET_IMAGE}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}{{ $multi_arch_image_flavor.suffix }}
293+
# IMG_DESTINATIONS: lambda-extension:${VERSION}{{ $multi_arch_image_flavor.suffix }},lambda-extension:latest{{ $multi_arch_image_flavor.suffix }}
294+
# IMG_REGISTRIES: dockerhub,ecr-public,gcr-datadoghq
295+
# IMG_SIGNING: false
296296

297297
{{ end }} # end multi_arch_image_flavors

0 commit comments

Comments
 (0)