Skip to content

Commit

Permalink
[gitlab] update nightly operator deployment job (#1311)
Browse files Browse the repository at this point in the history
  • Loading branch information
celenechang authored Jul 24, 2024
1 parent 27734a1 commit 46c0dd2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
21 changes: 15 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ trigger_internal_operator_check_image:
trigger_internal_operator_nightly_image:
stage: release
rules:
- if: '$CI_COMMIT_BRANCH == "main" && $DDR == "true" && $TARGET_ENV == "nightly-build"'
- if: '$CI_COMMIT_BRANCH == "main" && $TARGET_ENV == "nightly-build"'
when: on_success
- when: never
trigger:
Expand All @@ -313,7 +313,7 @@ trigger_internal_operator_nightly_image:
trigger_internal_operator_check_nightly_image:
stage: release
rules:
- if: '$CI_COMMIT_BRANCH == "main" && $DDR == "true" && $TARGET_ENV == "nightly-build"'
- if: '$CI_COMMIT_BRANCH == "main" && $TARGET_ENV == "nightly-build"'
when: on_success
- when: never
trigger:
Expand Down Expand Up @@ -461,10 +461,11 @@ publish_community_operators:
- make publish-community-bundles


deploy_nightly_image:
# On success, this will cause Conductor to trigger a Deployment to nightly clusters in SDP
publish_nightly_workflow:
stage: deploy
rules:
- if: '$CI_COMMIT_BRANCH == "main" && $DDR == "true" && $TARGET_ENV == "nightly-build"'
- if: '$CI_COMMIT_BRANCH == "main" && $TARGET_ENV == "nightly-build"'
when: on_success
- when: never
needs:
Expand All @@ -474,7 +475,15 @@ deploy_nightly_image:
project: DataDog/k8s-datadog-agent-ops
branch: main
strategy: depend
forward:
pipeline_variables: true
variables:
OPERATOR_NIGHTLY: true
ENVIRONMENTS: "alpha,experimental,staging"
OPERATOR_NIGHTLY: "true"
SKIP_PLAN_CHECK: "true"
ENVIRONMENTS: "experimental"
CHART: "datadog-operator"
EXPLICIT_WORKFLOWS: "//workflows:deploy_operator.operator_nightly.publish"
BAZEL_TARGET: $BAZEL_TARGET
DDR: $DDR
TARGET_ENV: $TARGET_ENV
DDR_WORKFLOW_ID: $DDR_WORKFLOW_ID
3 changes: 2 additions & 1 deletion service.datadog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ extensions:
- "staging"
branch: "main"
schedule: "10 3 * * SUN-THU"
# workflows:
workflows:
- "k8s-datadog-agent-ops/workflows/deploy_operator.operator_nightly"
- name: "conductor-test"
ci_pipeline: "//fake_placeholder:fake_placeholder"
# Test branch
Expand Down

0 comments on commit 46c0dd2

Please sign in to comment.