Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .gitlab/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
.docker_publish_job_definition:
image: registry.ddbuild.io/agent-delivery/dd-pkg:v0.9.0
variables:
IMG_SIGNING: "false"
PUBLIC_IMAGES_PUBLISH_TIMEOUT: "1800"
script:
- |
set -euo pipefail
dd-pkg version
args=(publish-image --timeout "${PUBLIC_IMAGES_PUBLISH_TIMEOUT}" --poll-interval 30 --signing="${IMG_SIGNING}")
if [[ -n "${IMG_REGISTRIES:-}" ]]; then args+=(--registries "${IMG_REGISTRIES}"); fi
if [[ -n "${IMG_SOURCES:-}" ]]; then args+=(--sources "${IMG_SOURCES}"); fi
if [[ -n "${IMG_DESTINATIONS:-}" ]]; then args+=(--destinations "${IMG_DESTINATIONS}"); fi
if [[ -n "${IMG_DESTINATIONS_REGEX:-}" ]]; then args+=(--regex-expression "${IMG_DESTINATIONS_REGEX}"); fi
if [[ -n "${IMG_DESTINATIONS_REGEX_REPL:-}" ]]; then args+=(--regex-replacement "${IMG_DESTINATIONS_REGEX_REPL}"); fi
if [[ -n "${IMG_TAG_REFERENCE:-}" ]]; then args+=(--tag-reference "${IMG_TAG_REFERENCE}"); fi
if [[ -n "${IMG_NEW_TAGS:-}" ]]; then args+=(--new-tags "${IMG_NEW_TAGS}"); fi
dd-pkg "${args[@]}"

.publish-image-linux-definition:
extends: .docker_publish_job_definition
stage: release
rules:
- if: !reference [.on_official_release, rules, if]
Expand All @@ -12,10 +32,6 @@
- check-licenses
- test-correctness-dsd-events
- test-correctness-dsd-plain
trigger:
project: DataDog/public-images
branch: main
strategy: depend
variables:
IMG_REGISTRIES: public
IMG_SOURCES: ${SOURCE_IMAGE}
Expand Down
Loading