Skip to content

Commit

Permalink
[ci] Adjust condition to release Helm charts (#6620)
Browse files Browse the repository at this point in the history
This adds a `build.message` to trigger in one call the release of all (eck-operator and eck-resources) Helm charts,
and enables the automatic release of all Helm charts for final tags.
  • Loading branch information
thbkrkr committed Mar 29, 2023
1 parent e3488be commit 0ef8d5e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .buildkite/pipeline-release-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ steps:
|| build.tag != null
|| build.message =~ /^buildkite test .*release.*/
|| build.message == "release eck-operator helm charts"
|| build.message == "release all helm charts"
depends_on:
- "build-helm-releaser-tool"
- "operator-image-build"
Expand All @@ -27,6 +28,7 @@ steps:
|| build.tag != null
|| build.message =~ /^buildkite test .*release.*/
|| build.message == "release eck-resources helm charts"
|| build.message == "release all helm charts"
depends_on:
- "build-helm-releaser-tool"
- "operator-image-build"
Expand All @@ -37,7 +39,10 @@ steps:
- releaser --env=dev --excludes=eck-operator --dry-run=\$DRY_RUN

- label: "operator prod helm chart"
if: build.message == "release eck-operator helm charts"
if: |
build.tag =~ /^v[0-9]+\.[0-9]+\.[0-9]+\$/
|| build.message == "release eck-operator helm charts"
|| build.message == "release all helm charts"
depends_on:
- "build-helm-releaser-tool"
- "eck-operator-dev-helm"
Expand All @@ -47,7 +52,10 @@ steps:
- releaser --env=prod --charts-dir=deploy/eck-operator --dry-run=\$DRY_RUN

- label: "eck-resources prod helm charts"
if: build.message == "release eck-resources helm charts"
if: |
build.tag =~ /^v[0-9]+\.[0-9]+\.[0-9]+\$/
|| build.message == "release eck-resources helm charts"
|| build.message == "release all helm charts"
depends_on:
- "build-helm-releaser-tool"
- "eck-resources-dev-helm"
Expand Down

0 comments on commit 0ef8d5e

Please sign in to comment.