Skip to content

Commit ac7089f

Browse files
authored
Merge pull request #3334 from cuipinghuo/integrate-e2e
Trigger conforma e2e tests on cli pull requests
2 parents 15814bf + 89b63ca commit ac7089f

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

.tekton/cli-e2e-pull-request.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/conforma/cli?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
10+
pipelinesascode.tekton.dev/max-keep-runs: "3"
11+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main"
12+
creationTimestamp:
13+
labels:
14+
appstudio.openshift.io/application: ec-main
15+
appstudio.openshift.io/component: cli-main
16+
pipelines.appstudio.openshift.io/type: test
17+
name: cli-e2e-on-pull-request
18+
namespace: rhtap-contract-tenant
19+
spec:
20+
params:
21+
- name: git-url
22+
value: https://github.com/conforma/e2e-tests.git
23+
- name: revision
24+
# renovate: datasource=git-refs depName=https://github.com/conforma/e2e-tests branch=main
25+
value: f7b2b9e3f74168c3d76457c28adc2cb152773bc2
26+
- name: oci-container-repo
27+
value: quay.io/conforma/e2e-tests
28+
- name: oci-container-repo-credentials-secret
29+
value: konflux-test-infra
30+
- name: aws-credentials-secret
31+
value: mapt-kind-secret
32+
- name: deprovision-aws-credentials-secret
33+
value: mapt-kind-secret
34+
pipelineRef:
35+
resolver: git
36+
params:
37+
- name: url
38+
value: https://github.com/conforma/e2e-tests.git
39+
- name: revision
40+
# renovate: datasource=git-refs depName=https://github.com/conforma/e2e-tests branch=main
41+
value: f7b2b9e3f74168c3d76457c28adc2cb152773bc2
42+
- name: pathInRepo
43+
value: .tekton/pipelines/conforma-e2e/pipeline.yaml
44+
taskRunTemplate:
45+
serviceAccountName: konflux-integration-runner

renovate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,15 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
44
"github>conforma/.github//config/renovate/renovate.json"
5+
],
6+
"customManagers": [
7+
{
8+
"customType": "regex",
9+
"fileMatch": ["\\.tekton/.*\\.yaml$"],
10+
"matchStrings": [
11+
"#\\s*renovate:\\s*datasource=git-refs\\s+depName=(?<depName>[^\\s]+)\\s+branch=(?<currentValue>[^\\s]+)\\s*\\n\\s*value:\\s*(?<currentDigest>[a-f0-9]+)"
12+
],
13+
"datasourceTemplate": "git-refs"
14+
}
515
]
616
}

0 commit comments

Comments
 (0)