From 0ef8d5e3bb4003d317235a56e6a1fd6f852d3d29 Mon Sep 17 00:00:00 2001 From: Thibault Richard Date: Wed, 29 Mar 2023 17:48:51 +0200 Subject: [PATCH] [ci] Adjust condition to release Helm charts (#6620) 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. --- .buildkite/pipeline-release-helm.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline-release-helm.yml b/.buildkite/pipeline-release-helm.yml index 1950c7130f..3dd6284355 100644 --- a/.buildkite/pipeline-release-helm.yml +++ b/.buildkite/pipeline-release-helm.yml @@ -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" @@ -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" @@ -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" @@ -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"