Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gitlab] update nightly operator deployment job #1311

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading