Skip to content

Commit

Permalink
[gitlab] use one single job definition to trigger test-infra bumps in…
Browse files Browse the repository at this point in the history
… datadog-agent
  • Loading branch information
pducolin committed Dec 17, 2024
1 parent 8632266 commit 6fe0f0c
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,21 @@ release-runner-image:
- if: $CI_COMMIT_BRANCH == "main"
when: on_success

.bump-version-on-datadog-agent:
bump-version-on-datadog-agent:
stage: post-release
image: registry.ddbuild.io/ci/datadog-agent-buildimages/deb_x64:v48815877-9bfad02c
tags: ["arch:amd64"]
rules:
- if: $CI_COMMIT_BRANCH == "main"
needs: ["release-runner-image"]
when: on_success
- if: $CI_COMMIT_BRANCH =~ /^mq-working-branch-/
when: never
- when: manual
needs: ["build-runner-image"]
allow_failure: true
variables:
EXTRA_UPDATE_ARGS: "--is-dev-image"
variables:
EXTRA_UPDATE_ARGS: ""
before_script:
Expand Down Expand Up @@ -129,28 +143,3 @@ release-runner-image:
- popd
- pip install -r requirements.txt
- inv ci.create-bump-pr-and-close-stale-ones-on-datadog-agent --branch auto-bump/bump-test-infra-$CI_COMMIT_SHORT_SHA --new-commit-sha $CI_COMMIT_SHA --old-commit-sha $PREVIOUS_SHA

bump-version-on-datadog-agent-dev:
extends: .bump-version-on-datadog-agent
stage: post-release
image: ${CI_REGISTRY_IMAGE_TEST}:${CI_COMMIT_SHORT_SHA}
tags: ["arch:amd64"]
needs: ["build-runner-image"]
rules:
- if: $CI_COMMIT_BRANCH == "main"
when: never
- when: manual
allow_failure: true
variables:
EXTRA_UPDATE_ARGS: "--is-dev-image"

bump-version-on-datadog-agent:
extends: .bump-version-on-datadog-agent
stage: post-release
image: ${CI_REGISTRY_IMAGE_TEST}:${CI_COMMIT_SHORT_SHA}
tags: ["arch:amd64"]
needs: ["release-runner-image"]
rules:
- if: $CI_COMMIT_BRANCH == "main"
when: on_success

0 comments on commit 6fe0f0c

Please sign in to comment.