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

update gitlab jobs for nightly deploy #1300

Merged
merged 1 commit into from
Jul 18, 2024
Merged
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
24 changes: 22 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ stages:
- release
- e2e
- post-release
- deploy

.new_e2e_template:
stage: e2e
Expand Down Expand Up @@ -293,7 +294,7 @@ trigger_internal_operator_check_image:
trigger_internal_operator_nightly_image:
stage: release
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
- if: '$CI_COMMIT_BRANCH == "main" && $DDR == "true" && $TARGET_ENV == "nightly-build"'
when: on_success
- when: never
trigger:
Expand All @@ -312,7 +313,7 @@ trigger_internal_operator_nightly_image:
trigger_internal_operator_check_nightly_image:
stage: release
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
- if: '$CI_COMMIT_BRANCH == "main" && $DDR == "true" && $TARGET_ENV == "nightly-build"'
when: on_success
- when: never
trigger:
Expand Down Expand Up @@ -458,3 +459,22 @@ publish_community_operators:
- gh auth setup-git
# create pull request for each marketplace repo
- make publish-community-bundles


deploy_nightly_image:
stage: deploy
rules:
- if: '$CI_COMMIT_BRANCH == "main" && $DDR == "true" && $TARGET_ENV == "nightly-build"'
when: on_success
- when: never
needs:
- trigger_internal_operator_nightly_image
- trigger_internal_operator_check_nightly_image
trigger:
project: DataDog/k8s-datadog-agent-ops
branch: main
strategy: depend
variables:
OPERATOR_NIGHTLY: true
ENVIRONMENTS: "alpha,experimental,staging"
CHART: "datadog-operator"
Loading