forked from sigstore/gitsign
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gitsign-pull-request.yaml
62 lines (62 loc) · 1.87 KB
/
gitsign-pull-request.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
annotations:
build.appstudio.openshift.io/repo: https://github.com/securesign/gitsign?rev={{revision}}
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main"
creationTimestamp: null
labels:
appstudio.openshift.io/application: cli
appstudio.openshift.io/component: gitsign
pipelines.appstudio.openshift.io/type: build
name: gitsign-on-pull-request
namespace: rhtas-tenant
spec:
params:
- name: dockerfile
value: Dockerfile.gitsign.rh
- name: git-url
value: '{{repo_url}}'
- name: image-expires-after
value: 5d
- name: output-image
value: quay.io/securesign/gitsign:on-pr-{{revision}}
- name: path-context
value: .
- name: revision
value: '{{revision}}'
- name: prefetch-input
value: '{"type": "gomod", "path": "."}'
- name: hermetic
value: "true"
- name: build-source-image
value: "true"
- name: go_unit_test
value: true
- name: go_test_command
value: go test $(go list ./... | grep -v github.com/sigstore/gitsign/pkg/version)
pipelineRef:
resolver: git
params:
- name: url
value: 'https://github.com/securesign/pipelines.git'
- name: revision
value: 'main'
- name: pathInRepo
value: 'pipelines/docker-build-oci-ta.yaml'
taskRunTemplate: {}
taskRunSpecs:
- pipelineTaskName: run-unit-test
serviceAccountName: appstudio-pipeline
podTemplate:
imagePullSecrets:
- name: brew-registry-pull-secret
workspaces:
- name: git-auth
secret:
secretName: '{{ git_auth_secret }}'
status: {}