From 5b810a78ebddcc5e46297463e96d04e2c6238bd0 Mon Sep 17 00:00:00 2001 From: Celene Date: Wed, 9 Oct 2024 16:13:12 -0400 Subject: [PATCH] [gitlab] trigger operator release candidate workflow (#1446) * test deploy flow * fix workflow * cleanup --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0b2f1f9bf..df84287ae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -509,3 +509,28 @@ publish_nightly_workflow: TARGET_ENV: $TARGET_ENV CONDUCTOR_TARGET: $CONDUCTOR_TARGET DDR_WORKFLOW_ID: $DDR_WORKFLOW_ID + +# On success, this will cause CNAB to trigger a Deployment to Release Candidate clusters +publish_release_candidate_workflow: + stage: deploy + rules: + - if: '$CI_COMMIT_BRANCH == "main" && $CI_COMMIT_TAG' + when: manual # TODO: change this to on_success when feeling confident + - when: never + needs: + - trigger_internal_operator_image + - trigger_internal_operator_check_image + trigger: + project: DataDog/k8s-datadog-agent-ops + branch: main + strategy: depend + forward: + pipeline_variables: true + variables: + OPERATOR_RC: "true" + SKIP_PLAN_CHECK: "true" + ENVIRONMENTS: "experimental" + CHART: "datadog-operator" + OPTION_AUTOMATIC_ROLLOUT: "true" + EXPLICIT_WORKFLOWS: "//workflows:deploy_operator_rc.operator_rc" + OPERATOR_IMAGE_TAG: $CI_COMMIT_REF_SLUG