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

pipeline for serverless kibana release #165009

Merged
merged 10 commits into from
Aug 31, 2023
10 changes: 10 additions & 0 deletions .buildkite/pipelines/pipeline.kibana-release.yaml
Original file line number Diff line number Diff line change
@@ -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-]+)*))?$$/
imkarrer marked this conversation as resolved.
Show resolved Hide resolved
"'
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
34 changes: 34 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
imkarrer marked this conversation as resolved.
Show resolved Hide resolved
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-]+)*))?$$/
imkarrer marked this conversation as resolved.
Show resolved Hide resolved
"'
filter_enabled: true
trigger_mode: none
teams:
kibana-operations:
access_level: BUILD_AND_READ
imkarrer marked this conversation as resolved.
Show resolved Hide resolved