-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(apps/prod/tekton/configs/triggers): add triggers to build artifa…
…cts with `experiment` profile (#1245) Signed-off-by: wuhuizuo <wuhuizuo@126.com> --------- Signed-off-by: wuhuizuo <wuhuizuo@126.com>
- Loading branch information
Showing
17 changed files
with
522 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
apps/prod/tekton/configs/triggers/triggers/pingcap/monitoring/git-push-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-git-push-pingcap-monitoring | ||
labels: | ||
type: github-branch-push | ||
github-owner: pingcap | ||
github-repo: monitoring | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name and branches | ||
ref: { name: cel } | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.full_name == 'pingcap/monitoring' | ||
&& | ||
body.ref.matches('^refs/heads/(master|release-8[.]4)$') | ||
bindings: | ||
- ref: github-branch-push | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 30m } | ||
- { name: source-ws-size, value: 8Gi } | ||
- { name: builder-resources-memory, value: 4Gi } | ||
- { name: builder-resources-cpu, value: "2" } | ||
|
||
template: | ||
ref: build-component |
32 changes: 32 additions & 0 deletions
32
apps/prod/tekton/configs/triggers/triggers/pingcap/ng-monitoring/git-push-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-git-push-pingcap-ng-monitoring | ||
labels: | ||
type: github-branch-push | ||
github-owner: pingcap | ||
github-repo: ng-monitoring | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name and branches | ||
ref: { name: cel } | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.full_name == 'pingcap/ng-monitoring' | ||
&& | ||
body.ref.matches('^refs/heads/(master|release-8[.]4)$') | ||
bindings: | ||
- ref: github-branch-push | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 30m } | ||
- { name: source-ws-size, value: 8Gi } | ||
- { name: builder-resources-memory, value: 4Gi } | ||
- { name: builder-resources-cpu, value: "2" } | ||
|
||
template: | ||
ref: build-component |
35 changes: 35 additions & 0 deletions
35
apps/prod/tekton/configs/triggers/triggers/pingcap/tidb-ctl/git-create-tag-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-tag-create-pingcap-tidb-ctl | ||
labels: | ||
type: github-tag-create | ||
github-owner: pingcap | ||
github-repo: tidb-ctl | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name | ||
ref: | ||
name: cel | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.owner.login == 'pingcap' | ||
&& | ||
body.repository.name == 'tidb-ctl' | ||
&& | ||
body.ref.matches('^v[0-9]+[.][0-9]+[.][0-9]+$') | ||
bindings: | ||
- ref: github-tag-create | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 1h } | ||
- { name: source-ws-size, value: 10Gi } | ||
- { name: builder-resources-memory, value: 4Gi } | ||
- { name: builder-resources-cpu, value: "2" } | ||
|
||
template: | ||
ref: build-component |
29 changes: 29 additions & 0 deletions
29
apps/prod/tekton/configs/triggers/triggers/pingcap/tidb-ctl/git-push-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-git-push-pingcap-tidb-ctl | ||
labels: | ||
type: github-branch-push | ||
github-owner: pingcap | ||
github-repo: tidb-ctl | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name | ||
ref: | ||
name: cel | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.owner.login == 'pingcap' && body.repository.name == 'tidb-ctl' && body.ref.matches('^refs/heads/(master)$') | ||
bindings: | ||
- ref: github-branch-push | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 1h } | ||
- { name: source-ws-size, value: 10Gi } | ||
- { name: builder-resources-memory, value: 4Gi } | ||
- { name: builder-resources-cpu, value: "2" } | ||
template: | ||
ref: build-component |
30 changes: 30 additions & 0 deletions
30
apps/prod/tekton/configs/triggers/triggers/pingcap/tidb-dashboard/git-push-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-git-push-pingcap-tidb-dashboard | ||
labels: | ||
type: github-branch-push | ||
github-owner: pingcap | ||
github-repo: tidb-dashboard | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name and branches | ||
ref: { name: cel } | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.full_name == 'pingcap/tidb-dashboard' | ||
&& | ||
body.ref.matches('^refs/heads/(master|release-8[.]4)$') | ||
bindings: | ||
- ref: github-branch-push | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 40m } | ||
- { name: source-ws-size, value: 8Gi } | ||
- { name: builder-resources-memory, value: 4Gi } | ||
- { name: builder-resources-cpu, value: "2" } | ||
template: | ||
ref: build-component |
32 changes: 32 additions & 0 deletions
32
apps/prod/tekton/configs/triggers/triggers/pingcap/tidb-tools/git-create-tag-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-tag-create-pingcap-tidb-tools | ||
labels: | ||
type: github-tag-create | ||
github-owner: pingcap | ||
github-repo: tidb-tools | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name and branches | ||
ref: { name: cel } | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.full_name == 'pingcap/tidb-tools' | ||
&& | ||
body.ref.matches('^v[8-9]+[.][0-9]+[.][0-9]+$') | ||
bindings: | ||
- ref: github-tag-create | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 1h } | ||
- { name: source-ws-size, value: 10Gi } | ||
- { name: builder-resources-memory, value: 16Gi } | ||
- { name: builder-resources-cpu, value: "4" } | ||
|
||
template: | ||
ref: build-component |
32 changes: 32 additions & 0 deletions
32
apps/prod/tekton/configs/triggers/triggers/pingcap/tidb-tools/git-push-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-git-push-pingcap-tidb-tools | ||
labels: | ||
type: github-branch-push | ||
github-owner: pingcap | ||
github-repo: tidb-tools | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name and branches | ||
ref: { name: cel } | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.full_name == 'pingcap/tidb-tools' | ||
&& | ||
body.ref.matches('^refs/heads/(master|release-8[.]4)$') | ||
bindings: | ||
- ref: github-branch-push | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 1h } | ||
- { name: source-ws-size, value: 10Gi } | ||
- { name: builder-resources-memory, value: 16Gi } | ||
- { name: builder-resources-cpu, value: "4" } | ||
|
||
template: | ||
ref: build-component |
32 changes: 32 additions & 0 deletions
32
apps/prod/tekton/configs/triggers/triggers/pingcap/tidb/git-push-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-git-push-pingcap-tidb | ||
labels: | ||
type: github-branch-push | ||
github-owner: pingcap | ||
github-repo: tidb | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name and branches | ||
ref: { name: cel } | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.full_name == 'pingcap/tidb' | ||
&& | ||
body.ref.matches('^refs/heads/(master|release-8[.]4)$') | ||
bindings: | ||
- ref: github-branch-push | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 40m } | ||
- { name: source-ws-size, value: 50Gi } | ||
- { name: builder-resources-memory, value: 32Gi } | ||
- { name: builder-resources-cpu, value: "8" } | ||
|
||
template: | ||
ref: build-component |
32 changes: 32 additions & 0 deletions
32
apps/prod/tekton/configs/triggers/triggers/pingcap/tiflash/git-push-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-git-push-pingcap-tiflash | ||
labels: | ||
type: github-branch-push | ||
github-owner: pingcap | ||
github-repo: tiflash | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name and branches | ||
ref: { name: cel } | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.full_name == 'pingcap/tiflash' | ||
&& | ||
body.ref.matches('^refs/heads/(master|release-8[.]4)$') | ||
bindings: | ||
- ref: github-branch-push | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 3h } | ||
- { name: source-ws-size, value: 100Gi } | ||
- { name: builder-resources-memory, value: 64Gi } | ||
- { name: builder-resources-cpu, value: "16" } | ||
|
||
template: | ||
ref: build-component |
31 changes: 31 additions & 0 deletions
31
...d/tekton/configs/triggers/triggers/pingcap/tiflow-operator/git-create-tag-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: ext-tag-create-pingcap-tiflow-operator | ||
labels: | ||
type: github-tag-create | ||
github-owner: pingcap | ||
github-repo: tiflow-operator | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name tags | ||
ref: { name: cel } | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.full_name == 'pingcap/tiflow-operator' | ||
&& | ||
body.ref.matches('^v.+') | ||
bindings: | ||
- ref: github-tag-create | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 30m } | ||
- { name: source-ws-size, value: 5Gi } | ||
- { name: builder-resources-memory, value: 4Gi } | ||
- { name: builder-resources-cpu, value: "2" } | ||
template: | ||
ref: build-component |
31 changes: 31 additions & 0 deletions
31
apps/prod/tekton/configs/triggers/triggers/pingcap/tiflow-operator/git-push-experiment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: triggers.tekton.dev/v1beta1 | ||
kind: Trigger | ||
metadata: | ||
name: exp-git-push-pingcap-tiflow-operator | ||
labels: | ||
type: github-branch-push | ||
github-owner: pingcap | ||
github-repo: tiflow-operator | ||
profile: experiment | ||
spec: | ||
interceptors: | ||
- name: filter on repo owner and name and branches | ||
ref: { name: cel } | ||
params: | ||
- name: filter | ||
value: >- | ||
body.repository.full_name == 'pingcap/tiflow-operator' | ||
&& | ||
body.ref.matches('^refs/heads/(master)$') | ||
bindings: | ||
- ref: github-branch-push | ||
- { name: component, value: $(body.repository.name) } | ||
- { name: os, value: linux } | ||
- { name: profile, value: experiment } | ||
- { name: timeout, value: 30m } | ||
- { name: source-ws-size, value: 5Gi } | ||
- { name: builder-resources-memory, value: 4Gi } | ||
- { name: builder-resources-cpu, value: "2" } | ||
template: | ||
ref: build-component |
Oops, something went wrong.