Skip to content

Commit

Permalink
pipeline for serverless kibana release (#165009)
Browse files Browse the repository at this point in the history
## Summary

Adds a pipeline that will trigger the promotion and QG for kibana
through qa -> staging -> production whenever the tag which [matches the
regex](https://regex101.com/r/tY52jo/1) is created.

Sibling PR [here](https://github.com/elastic/serverless-gitops/pull/661)
that defines `main/gen/gpctl/kibana/tagged-release.yaml`

The meat of the PR is the regex.

---------

Co-authored-by: Thomas Watson <[email protected]>
Co-authored-by: Alex Szabo <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
4 people authored Aug 31, 2023
1 parent 0ea37c1 commit 581b7f4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .buildkite/pipelines/pipeline.kibana-serverless-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
steps:
- label: ":releasethekraken: Release kibana"
# https://regex101.com/r/tY52jo/1
if: build.tag =~ /^deploy@\d+\$/
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
35 changes: 35 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,39 @@ spec:
lifecycle: production
system: control-plane

---

apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: kibana-serverless-release
description: Definition of the kibana release pipeline
links:
- title: Pipeline
url: https://buildkite.com/elastic/kibana-serverless-release
spec:
type: buildkite-pipeline
owner: group:kibana-operations
system: buildkite
implementation:
apiVersion: buildkite.elastic.dev/v1
kind: Pipeline
metadata:
name: kibana-serverless-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-serverless-release.yaml
provider_settings:
build_branches: false
build_pull_request_forks: false
build_tags: true
# https://regex101.com/r/tY52jo/1
filter_condition: 'build.tag =~ "/^deploy@\d+\$/"'
filter_enabled: true
trigger_mode: none
teams:
kibana-operations:
access_level: MANAGE_BUILD_AND_READ
everyone:
access_level: READ_ONLY

0 comments on commit 581b7f4

Please sign in to comment.