69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
apiVersion: triggers.tekton.dev/v1beta1
|
|
kind: TriggerTemplate
|
|
metadata:
|
|
name: pipeline-symfonyapp-template
|
|
spec:
|
|
params:
|
|
- name: ref
|
|
- name: before
|
|
- name: after
|
|
- name: compare_url
|
|
- name: repository.id
|
|
- name: repository.name
|
|
- name: repository.full_name
|
|
- name: repository.owner.id
|
|
- name: repository_owner.username
|
|
- name: repository_owner.full_name
|
|
- name: repository.html_url
|
|
- name: repository.clone_url
|
|
- name: repository.ssh_url
|
|
- name: repository.default_branch
|
|
- name: pusher.id
|
|
- name: pusher.username
|
|
- name: pusher.full_name
|
|
- name: sender.id
|
|
- name: sender.username
|
|
- name: sender.full_name
|
|
- name: commits.id
|
|
- name: commits.message
|
|
- name: commits.url
|
|
- name: commits.author.name
|
|
- name: commits.author.email
|
|
- name: commits.author.username
|
|
- name: commits.timestamp
|
|
resourcetemplates:
|
|
- apiVersion: tekton.dev/v1beta1
|
|
kind: PipelineRun
|
|
metadata:
|
|
generateName: symfonyapp-run-
|
|
namespace: tekton
|
|
spec:
|
|
serviceAccountName: build-bot
|
|
pipelineRef:
|
|
name: pipeline-symfonyapp
|
|
podTemplate:
|
|
securityContext:
|
|
fsGroup: 65532
|
|
workspaces:
|
|
- name: shared-data
|
|
volumeClaimTemplate:
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
- name: config
|
|
configmap:
|
|
name: config-php-cs-fixer
|
|
- name: docker-credentials
|
|
secret:
|
|
secretName: regcred
|
|
params:
|
|
- name: url
|
|
value: $(tt.params.repository.html_url)
|
|
- name: revision
|
|
value: $(tt.params.ref)
|
|
- name: destination
|
|
value: sprint-8
|