diff --git a/.gitlab/deploy_6/container.yml b/.gitlab/deploy_6/container.yml index b1037e6a81657..7abf39d52d3ba 100644 --- a/.gitlab/deploy_6/container.yml +++ b/.gitlab/deploy_6/container.yml @@ -14,6 +14,7 @@ stage: deploy6 dependencies: [] before_script: + - source /root/.bashrc - if [[ "$VERSION" == "" ]]; then export VERSION="$(inv agent.version --major-version 6 --url-safe)"; fi - export IMG_SOURCES="${SRC_AGENT}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-6${JMX}-amd64,${SRC_AGENT}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-6${JMX}-arm64" - export IMG_DESTINATIONS="${AGENT_REPOSITORY}:${VERSION}${JMX}" diff --git a/.gitlab/deploy_7/container.yml b/.gitlab/deploy_7/container.yml index 45516c6772a14..df3db2ace79f1 100644 --- a/.gitlab/deploy_7/container.yml +++ b/.gitlab/deploy_7/container.yml @@ -14,6 +14,7 @@ stage: deploy7 dependencies: [] before_script: + - source /root/.bashrc - if [[ "$VERSION" == "" ]]; then export VERSION="$(inv agent.version --major-version 7 --url-safe)"; fi - export IMG_BASE_SRC="${SRC_AGENT}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}" - export IMG_LINUX_SOURCES="${IMG_BASE_SRC}-7${JMX}-amd64,${IMG_BASE_SRC}-7${JMX}-arm64" @@ -55,6 +56,7 @@ deploy_containers-dogstatsd: !reference [.on_deploy_a7_manual_auto_on_rc] dependencies: [] before_script: + - source /root/.bashrc - export VERSION="$(inv agent.version --major-version 7 --url-safe)" - export IMG_SOURCES="${SRC_DSD}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-amd64,${SRC_DSD}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}-arm64" - export IMG_DESTINATIONS="${DSD_REPOSITORY}:${VERSION}" diff --git a/.gitlab/deploy_dca.yml b/.gitlab/deploy_dca.yml index dc433def2a662..1e4db98735f20 100644 --- a/.gitlab/deploy_dca.yml +++ b/.gitlab/deploy_dca.yml @@ -14,6 +14,7 @@ stage: deploy_dca dependencies: [] before_script: + - source /root/.bashrc - if [[ "$VERSION" == "" ]]; then export VERSION="$(inv agent.version --major-version 7 --url-safe)"; fi - if [[ "$CLUSTER_AGENT_REPOSITORY" == "" ]]; then export CLUSTER_AGENT_REPOSITORY="cluster-agent"; fi - export IMG_BASE_SRC="${SRC_DCA}:v${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}" diff --git a/.gitlab/docker_common/publish_job_templates.yml b/.gitlab/docker_common/publish_job_templates.yml index f6eb8e19425c2..122dc90cfdb33 100644 --- a/.gitlab/docker_common/publish_job_templates.yml +++ b/.gitlab/docker_common/publish_job_templates.yml @@ -6,12 +6,13 @@ .docker_publish_job_definition: image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES - tags: ["runner:main"] + tags: ["arch:amd64"] variables: <<: *docker_variables IMG_VARIABLES: "" IMG_SIGNING: "" script: # We can't use the 'trigger' keyword on manual jobs, otherwise they can't be run if the pipeline fails and is retried + - source /root/.bashrc - export GITLAB_TOKEN=$(aws ssm get-parameter --region us-east-1 --name ci.datadog-agent.gitlab_pipelines_scheduler_token --with-decryption --query "Parameter.Value" --out text) - ECR_RELEASE_SUFFIX="${CI_COMMIT_TAG+-release}" - IMG_VARIABLES="$(sed -E "s#(${SRC_AGENT}|${SRC_DSD}|${SRC_DCA})#\1${ECR_RELEASE_SUFFIX}#g" <<<"$IMG_VARIABLES")"