57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
|
apiVersion: triggers.tekton.dev/v1beta1
|
||
|
kind: TriggerTemplate
|
||
|
metadata:
|
||
|
name: imagebuild-template
|
||
|
spec:
|
||
|
params:
|
||
|
- name: url
|
||
|
- name: revision
|
||
|
- name: image
|
||
|
- name: apiurl
|
||
|
- name: requestid
|
||
|
resourcetemplates:
|
||
|
- apiVersion: tekton.dev/v1beta1
|
||
|
kind: PipelineRun
|
||
|
metadata:
|
||
|
generateName: imagebuild-run-
|
||
|
namespace: tekton
|
||
|
spec:
|
||
|
serviceAccountName: build-bot
|
||
|
pipelineRef:
|
||
|
name: imagebuild
|
||
|
podTemplate:
|
||
|
securityContext:
|
||
|
fsGroup: 65532
|
||
|
workspaces:
|
||
|
- name: shared-data
|
||
|
volumeClaimTemplate:
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 1Gi
|
||
|
- name: config
|
||
|
configmap:
|
||
|
name: config-phpcsfixer
|
||
|
- name: docker-credentials
|
||
|
secret:
|
||
|
secretName: regcred
|
||
|
params:
|
||
|
- name: url
|
||
|
value: $(tt.params.url)
|
||
|
- name: revision
|
||
|
value: $(tt.params.revision)
|
||
|
- name: image
|
||
|
value: $(tt.params.image)
|
||
|
- name: apiurl
|
||
|
value: $(tt.params.apiurl)
|
||
|
- name: requesttype
|
||
|
value: "release"
|
||
|
- name: requestid
|
||
|
value: $(tt.params.requestid)
|
||
|
- name: access_token
|
||
|
value: 69f6d1db6cf1e47dc7958ac20a31e76abf1582ee
|
||
|
- name: dockerfile
|
||
|
value: misc/k8s/images/portal
|