-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Kacper murzyn/rc automatic deployments (#20929) * Add flag to build-rc for staging deployments * Deployment job added for test * Test parameters * Filename typo * Filename typo 2 * Remove needs for test purpose * Remove rules for test purpose * Test workflow trigger * Change to retrigger the pipeline * Pipeline trigger * Pipeline trigger * Pipeline trigger * Image references fix * Test with new image tag * Trigger pipeline * Trigger pipeline * Trigger pipeline * Trigger pipeline * Clean up from test values * Updates after review * Remove wrong rule
- Loading branch information
1 parent
a0e7724
commit 478f523
Showing
5 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
# internal_kubernetes_deploy stage | ||
# Contains jobs to trigger a pipeline in our k8s-datadog-agent-ops repo to deploy release candidate build | ||
|
||
rc_kubernetes_deploy: | ||
stage: internal_kubernetes_deploy | ||
rules: | ||
- if: $RC_K8S_DEPLOYMENTS == "true" | ||
when: always | ||
needs: | ||
- job: docker_trigger_internal | ||
artifacts: false | ||
- job: docker_trigger_cluster_agent_internal | ||
artifacts: false | ||
- job: k8s-e2e-main # Currently only require container Argo workflow | ||
artifacts: false | ||
optional: true | ||
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/datadog-agent-buildimages/deb_x64$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES | ||
tags: ["arch:amd64"] | ||
variables: | ||
OPTION_AUTOMATIC_ROLLOUT: "true" | ||
OPTION_PRE_SCRIPT: "patch-cluster-images-operator.sh env=all-staging ${CI_COMMIT_REF_SLUG}-jmx ${CI_COMMIT_REF_SLUG}" | ||
SKIP_PLAN_CHECK: "true" | ||
EXPLICIT_WORKFLOWS: "//workflows:deploy_rc.agents_rc" | ||
script: | ||
- source /root/.bashrc | ||
- set +x | ||
- 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) | ||
- inv pipeline.trigger-child-pipeline --project-name "DataDog/k8s-datadog-agent-ops" --git-ref "main" --variables "OPTION_AUTOMATIC_ROLLOUT,EXPLICIT_WORKFLOWS,OPTION_PRE_SCRIPT,SKIP_PLAN_CHECK" --no-follow |
This file contains 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
This file contains 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
This file contains 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