Skip to content

Commit

Permalink
feat(apps/prod/tekton/configs/triggers): enable release branch to tri…
Browse files Browse the repository at this point in the history
…gger builds (#1187)

add releae-6.0~6.6

Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo authored Jul 29, 2024
1 parent adfc248 commit c93c06f
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,50 +91,4 @@ spec:
- { name: arch, value: $(extensions.arch) }
template:
ref: build-component-single-platform
---
# apiVersion: triggers.tekton.dev/v1beta1
# kind: Trigger
# metadata:
# name: artifact-push-on-harbor-with-git-tags-ctl-repos
# labels:
# type: image-push
# spec:
# interceptors:
# - name: filter on image repo names and tags
# ref:
# name: cel
# params:
# - name: filter
# value: >-
# body.event_data.repository.repo_full_name in [
# 'pingcap/tidb/package',
# 'pingcap/tiflow/package',
# 'pingcap/tidb-binlog/package',
# 'pingcap/tidb-ctl/package',
# 'tikv/pd/pacakge',
# 'tikv/tikv/package'
# ] &&
# body.event_data.resources[0].tag.matches('^v[0-9]+[.][0-9]+[.][0-9]+_(darwin|linux)_(amd64|arm64)$')
# - name: overlays
# value:
# - key: git-url
# expression: >-
# "https://github.com/" + body.event_data.repository.repo_full_name.replace('/package', '.git')
# - key: git-ref
# expression: body.event_data.resources[0].tag.split('_')[0]
# - key: git-revision
# expression: body.event_data.resources[0].tag.split('_')[0]
# - key: os
# expression: body.event_data.resources[0].tag.split('_')[1]
# - key: arch
# expression: body.event_data.resources[0].tag.split('_')[2]
# bindings:
# - { name: component, value: ctl }
# - { name: profile, value: release }
# - { name: git-url, value: $(extensions.git-url) }
# - { name: git-ref, value: $(extensions.git-ref) }
# - { name: git-revision, value: $(extensions.git-revision) }
# - { name: os, value: $(extensions.os) }
# - { name: arch, value: $(extensions.arch) }
# template:
# ref: build-component-single-platform

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
&&
body.repository.name == 'monitoring'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
&&
body.repository.name == 'ng-monitoring'
&&
body.ref.matches('^refs/heads/(main|master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(main|master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
- { name: component, value: $(body.repository.name) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
&&
body.repository.name == 'tidb-binlog'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
&&
body.repository.name == 'tidb-dashboard'
&&
body.ref.matches('^refs/heads/(main|master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(main|master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
- { name: component, value: $(body.repository.name) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
&&
body.repository.name == 'tidb-tools'
&&
body.ref.matches('^refs/heads/(main|master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(main|master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
&&
body.repository.name == 'tidb'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
- { name: component, value: $(body.repository.name) }
Expand Down Expand Up @@ -56,7 +56,7 @@ spec:
&&
body.repository.name == 'tidb'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
- { name: component, value: $(body.repository.name) }
Expand Down Expand Up @@ -92,7 +92,7 @@ spec:
&&
body.repository.name == 'tidb'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
- { name: component, value: $(body.repository.name) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
&&
body.repository.name == 'tiflash'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
- { name: component, value: $(body.repository.name) }
Expand Down Expand Up @@ -50,7 +50,7 @@ spec:
&&
body.repository.name == 'tiflash'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
- { name: component, value: $(body.repository.name) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
&&
body.repository.name == 'tiflow'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
&&
body.repository.name == 'pd'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down Expand Up @@ -51,7 +51,7 @@ spec:
&&
body.repository.name == 'pd'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down Expand Up @@ -88,7 +88,7 @@ spec:
&&
body.repository.name == 'pd'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
&&
body.repository.name == 'tikv'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down Expand Up @@ -57,7 +57,7 @@ spec:
&&
body.repository.name == 'tikv'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down Expand Up @@ -94,7 +94,7 @@ spec:
&&
body.repository.name == 'tikv'
&&
body.ref.matches('^refs/heads/(master|release-[7-9][.][0-9]+)$')
body.ref.matches('^refs/heads/(master|release-[6-9][.][0-9]+)$')
bindings:
- ref: github-branch-push
Expand Down

0 comments on commit c93c06f

Please sign in to comment.