59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
|
apiVersion: triggers.tekton.dev/v1beta1
|
||
|
kind: TriggerTemplate
|
||
|
metadata:
|
||
|
name: msebuild-template
|
||
|
spec:
|
||
|
params:
|
||
|
- name: url
|
||
|
- name: revision
|
||
|
- name: image
|
||
|
- name: apiurl
|
||
|
- name: requestid
|
||
|
resourcetemplates:
|
||
|
- apiVersion: tekton.dev/v1beta1
|
||
|
kind: PipelineRun
|
||
|
metadata:
|
||
|
generateName: msebuild-run-
|
||
|
namespace: tekton
|
||
|
spec:
|
||
|
serviceAccountName: build-bot
|
||
|
pipelineRef:
|
||
|
name: msebuild
|
||
|
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: portal
|
||
|
- name: tag
|
||
|
value: $(tt.params.tag)
|
||
|
- 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
|