Host Profiler Preview v2 image - #55461
Draft
mackjmr wants to merge 1 commit into
Draft
Conversation
Contributor
Gitlab CI Configuration ChangesModified Jobsdeploy_containers-host-profiler-preview deploy_containers-host-profiler-preview:
before_script:
- "if [[ -z \"${PREVIEW_NUMBER}\" ]]; then\n echo \"PREVIEW_NUMBER must be set\
\ before running deploy_containers-host-profiler-preview\" >&2\n exit 1\nfi\n"
- if [[ "$VERSION" == "" ]]; then VERSION=$(jq -r '.current_milestone' release.json);
fi
- export IMG_SOURCES="${SRC_DDOT_EBPF}:v${PARENT_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-7-amd64,${SRC_DDOT_EBPF}:v${PARENT_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-7-arm64"
- export IMG_DESTINATIONS="ddot-ebpf:${VERSION}-preview-host-profiler-${PREVIEW_NUMBER}"
dependencies: []
image: registry.ddbuild.io/ci/datadog-agent-buildimages/docker_x64$CI_IMAGE_DOCKER_X64_SUFFIX:$CI_IMAGE_DOCKER_X64
rules:
- allow_failure: true
when: manual
script:
- "set -euo pipefail\n\nif [[ \"${BUCKET_BRANCH:-}\" == \"nightly\" && ( \"${IMG_SOURCES:-}\"\
\ =~ \"$SRC_AGENT\" || \"${IMG_SOURCES:-}\" =~ \"$SRC_OTEL_AGENT\" || \"${IMG_SOURCES:-}\"\
\ =~ \"$SRC_DDOT_EBPF\" || \"${IMG_SOURCES:-}\" =~ \"$SRC_DCA\" || \"${IMG_SOURCES:-}\"\
\ =~ \"$SRC_CWS_INSTRUMENTATION\" || \"${IMG_SOURCES:-}\" =~ \"$SRC_SGC\" || \"\
${IMG_VARIABLES:-}\" =~ \"$SRC_AGENT\" || \"${IMG_VARIABLES:-}\" =~ \"$SRC_DDOT_EBPF\"\
\ || \"${IMG_VARIABLES:-}\" =~ \"$SRC_DCA\" || \"${IMG_VARIABLES:-}\" =~ \"$SRC_CWS_INSTRUMENTATION\"\
\ || \"${IMG_VARIABLES:-}\" =~ \"$SRC_SGC\" ) ]]; then\n export ECR_RELEASE_SUFFIX=\"\
-nightly\"\nelse\n export ECR_RELEASE_SUFFIX=\"${CI_COMMIT_TAG+-release}\"\n\
fi\nIMG_VARIABLES=\"$(sed -E \"s#(${SRC_AGENT}|${SRC_OTEL_AGENT}|${SRC_DDOT_EBPF}|${SRC_DSD}|${SRC_DCA}|${SRC_CWS_INSTRUMENTATION}|${SRC_SGC})#\\\
1${ECR_RELEASE_SUFFIX}#g\" <<<\"${IMG_VARIABLES:-}\")\"\nIMG_SOURCES=\"$(sed -E\
\ \"s#(${SRC_AGENT}|${SRC_OTEL_AGENT}|${SRC_DDOT_EBPF}|${SRC_DSD}|${SRC_DCA}|${SRC_CWS_INSTRUMENTATION}|${SRC_SGC})#\\\
1${ECR_RELEASE_SUFFIX}#g\" <<<\"${IMG_SOURCES:-}\")\"\n\ndd-pkg version\n\nargs=(publish-image\
\ --timeout \"${PUBLIC_IMAGES_PUBLISH_TIMEOUT}\" --poll-interval 30 --signing=false)\n\
\nif [[ -n \"${IMG_REGISTRIES:-}\" ]]; then args+=(--registries \"${IMG_REGISTRIES}\"\
); fi\nif [[ -n \"${IMG_SOURCES:-}\" ]]; then args+=(--sources \"${IMG_SOURCES}\"\
); fi\nif [[ -n \"${IMG_DESTINATIONS:-}\" ]]; then args+=(--destinations \"${IMG_DESTINATIONS}\"\
); fi\nif [[ -n \"${IMG_DESTINATIONS_REGEX:-}\" ]]; then args+=(--regex-expression\
\ \"${IMG_DESTINATIONS_REGEX}\"); fi\nif [[ -n \"${IMG_DESTINATIONS_REGEX_REPL:-}\"\
\ ]]; then args+=(--regex-replacement \"${IMG_DESTINATIONS_REGEX_REPL}\"); fi\n\
if [[ -n \"${IMG_TAG_REFERENCE:-}\" ]]; then args+=(--tag-reference \"${IMG_TAG_REFERENCE}\"\
); fi\nif [[ -n \"${IMG_NEW_TAGS:-}\" ]]; then args+=(--new-tags \"${IMG_NEW_TAGS}\"\
); fi\nif [[ -n \"${IMG_VARIABLES:-}\" ]]; then args+=(--variables \"${IMG_VARIABLES}\"\
); fi\nif [[ -n \"${IMG_MERGE_STRATEGY:-}\" ]]; then args+=(--merge-strategy \"\
${IMG_MERGE_STRATEGY}\"); fi\n\ndd-pkg \"${args[@]}\"\n"
stage: deploy_containers
tags:
- arch:amd64
- specific:true
variables:
IMG_REGISTRIES: default
IMG_SIGNING: 'false'
IMG_VARIABLES: ''
- PREVIEW_NUMBER: ''
+ PREVIEW_NUMBER: '2.0'
? +++
PUBLIC_IMAGES_PUBLISH_TIMEOUT: '1800'
SRC_AGENT: registry.ddbuild.io/ci/datadog-agent/agent
SRC_CWS_INSTRUMENTATION: registry.ddbuild.io/ci/datadog-agent/cws-instrumentation
SRC_DCA: registry.ddbuild.io/ci/datadog-agent/cluster-agent
SRC_DDOT_EBPF: registry.ddbuild.io/ci/datadog-agent/ddot-ebpf
SRC_DSD: registry.ddbuild.io/ci/datadog-agent/dogstatsd
SRC_OTEL_AGENT: registry.ddbuild.io/ci/datadog-agent/otel-agent
SRC_SGC: registry.ddbuild.io/ci/datadog-agent/secret-generic-connectorChanges Summary
ℹ️ Diff available in the job log. |
Contributor
Files inventory check summaryFile checks results against ancestor 6d981ea5: Results for datadog-agent_7.84.0~devel.git.495.8edbc52.pipeline.133396894-1_amd64.deb:No change detected Results for datadog-iot-agent_7.84.0~devel.git.495.8edbc52.pipeline.133396894-1_amd64.deb:No change detected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Motivation
Describe how you validated your changes
Additional Notes