From a37530e96b54b06cc1915db21545680a888c93f9 Mon Sep 17 00:00:00 2001 From: Isaac Karrer Date: Mon, 28 Aug 2023 11:17:25 -0500 Subject: [PATCH] pipeline for serverless kibana release --- .../pipelines/pipeline.kibana-release.yaml | 10 ++++++ catalog-info.yaml | 34 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .buildkite/pipelines/pipeline.kibana-release.yaml diff --git a/.buildkite/pipelines/pipeline.kibana-release.yaml b/.buildkite/pipelines/pipeline.kibana-release.yaml new file mode 100644 index 0000000000000..d043da57d4e48 --- /dev/null +++ b/.buildkite/pipelines/pipeline.kibana-release.yaml @@ -0,0 +1,10 @@ +steps: + - label: ":releasethekraken: Release kibana" + # https://regex101.com/r/ScgA8Y/1 + if: 'BUILDKITE_TAG =~ "/^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$$/ +"' + trigger: gpctl-promote + build: + env: + SERVICE_COMMIT_HASH: "${BUILDKITE_COMMIT:0:12}" + REMOTE_SERVICE_CONFIG: https://raw.githubusercontent.com/elastic/serverless-gitops/main/gen/gpctl/kibana/tagged-release.yaml diff --git a/catalog-info.yaml b/catalog-info.yaml index d37b33eb0ebff..345f3267f1b18 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -123,4 +123,38 @@ spec: lifecycle: production system: control-plane +--- +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: kibana-release + description: Definition of the kibana release pipeline + links: + - title: Pipeline + url: https://buildkite.com/elastic/kibana-release +spec: + type: buildkite-pipeline + owner: group:kibana-operations + system: buildkite + implementation: + apiVersion: buildkite.elastic.dev/v1 + kind: Pipeline + metadata: + name: kibana-release + description: Pipeline that releases kibana by triggering the release flow through qa, staging, and production + spec: + repository: elastic/kibana + pipeline_file: ./.buildkite/pipelines/pipeline.kibana-release.yaml + provider_settings: + build_branches: false + build_pull_request_forks: false + build_tags: true + # https://regex101.com/r/ScgA8Y/1 + filter_condition: 'build.tag =~ "/^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$$/ +"' + filter_enabled: true + trigger_mode: none + teams: + kibana-operations: + access_level: BUILD_AND_READ