ci: add JD01 v0.2 PaC trigger
This commit is contained in:
@@ -0,0 +1,49 @@
|
|||||||
|
apiVersion: tekton.dev/v1
|
||||||
|
kind: PipelineRun
|
||||||
|
metadata:
|
||||||
|
name: agentrun-jd01-v02-ci-{{ revision }}
|
||||||
|
namespace: agentrun-ci
|
||||||
|
annotations:
|
||||||
|
pipelinesascode.tekton.dev/on-event: "[push]"
|
||||||
|
pipelinesascode.tekton.dev/on-target-branch: "[v0.2]"
|
||||||
|
pipelinesascode.tekton.dev/max-keep-runs: "8"
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/part-of: agentrun
|
||||||
|
agentrun.pikastech.local/lane: v0.2
|
||||||
|
agentrun.pikastech.local/node: JD01
|
||||||
|
agentrun.pikastech.local/source-commit: "{{ revision }}"
|
||||||
|
agentrun.pikastech.local/trigger: pipelines-as-code
|
||||||
|
spec:
|
||||||
|
pipelineRef:
|
||||||
|
name: "{{ pipeline_name }}"
|
||||||
|
taskRunTemplate:
|
||||||
|
serviceAccountName: "{{ service_account }}"
|
||||||
|
podTemplate:
|
||||||
|
hostNetwork: true
|
||||||
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
|
securityContext:
|
||||||
|
fsGroup: 1000
|
||||||
|
params:
|
||||||
|
- name: git-url
|
||||||
|
value: "{{ repo_url }}"
|
||||||
|
- name: git-read-url
|
||||||
|
value: "{{ git_read_url }}"
|
||||||
|
- name: git-write-url
|
||||||
|
value: "{{ git_write_url }}"
|
||||||
|
- name: source-branch
|
||||||
|
value: "{{ source_branch }}"
|
||||||
|
- name: gitops-branch
|
||||||
|
value: "{{ gitops_branch }}"
|
||||||
|
- name: revision
|
||||||
|
value: "{{ revision }}"
|
||||||
|
- name: source-stage-ref
|
||||||
|
value: "{{ source_snapshot_prefix }}/{{ revision }}"
|
||||||
|
workspaces:
|
||||||
|
- name: source
|
||||||
|
volumeClaimTemplate:
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: "{{ workspace_pvc_size }}"
|
||||||
Reference in New Issue
Block a user