-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-push.yaml
53 lines (53 loc) · 2.22 KB
/
docker-push.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
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
name: application_name_replace-on-push
annotations:
pipelinesascode.tekton.dev/on-event: "[push]"
pipelinesascode.tekton.dev/on-target-branch: "[main]"
pipelinesascode.tekton.dev/max-keep-runs: "2"
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/redhat-ai-dev/ai-lab-helm-charts/main/pac/pipelines/docker-build-ai-software-templates-chart.yaml"
pipelinesascode.tekton.dev/task-0: "https://raw.githubusercontent.com/redhat-ai-dev/rhdh-pipelines/main/pac/tasks/init.yaml"
pipelinesascode.tekton.dev/task-1: "https://raw.githubusercontent.com/redhat-ai-dev/rhdh-pipelines/main/pac/tasks/git-clone.yaml"
pipelinesascode.tekton.dev/task-2: "https://raw.githubusercontent.com/redhat-ai-dev/rhdh-pipelines/main/pac/tasks/buildah-ai-rhdh.yaml"
pipelinesascode.tekton.dev/task-3: "https://raw.githubusercontent.com/redhat-ai-dev/ai-lab-helm-charts/main/pac/tasks/update-deployment.yaml"
pipelinesascode.tekton.dev/task-4: "https://raw.githubusercontent.com/redhat-ai-dev/rhdh-pipelines/main/pac/tasks/show-sbom-rhdh.yaml"
pipelinesascode.tekton.dev/task-5: "https://raw.githubusercontent.com/redhat-ai-dev/rhdh-pipelines/main/pac/tasks/summary.yaml"
labels:
app.kubernetes.io/part-of: application_name_replace
spec:
params:
- name: dockerfile
value: Containerfile
- name: deployment-name
value: application_name_replace
- name: deployment-namespace
value: application_namespace_replace
- name: container-name
value: app-inference
- name: git-url
value: '{{repo_url}}'
- name: image-expires-after
value: 5d
- name: output-image
value: quay.io/quay_account_replace/application_name_replace:{{revision}}
- name: path-context
value: .
- name: revision
value: '{{revision}}'
- name: event-type
value: '{{event_type}}'
pipelineRef:
name: docker-build-ai-software-templates-chart
workspaces:
- name: git-auth
secret:
secretName: "{{ git_auth_secret }}"
- name: workspace
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi