This repository was archived by the owner on Jul 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathappsody-build-push-deploy.yaml
More file actions
49 lines (49 loc) · 1.52 KB
/
appsody-build-push-deploy.yaml
File metadata and controls
49 lines (49 loc) · 1.52 KB
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
apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: appsody-build-push-deploy-task
spec:
inputs:
resources:
- name: git-source
type: git
- name: docker-image
type: image
params:
- name: app-deploy-file-name
default: app-deploy.yaml
steps:
- name: build
securityContext:
privileged: true
image: appsody/appsody-buildah:0.5.3-buildah1.9.0
command: ['/bin/bash']
args:
- -c
- "cd /workspace/$gitsource && appsody build -v --buildah --buildah-options='--format=docker' -t $(inputs.resources.docker-image.url) -f $(inputs.params.app-deploy-file-name)"
env:
- name: gitsource
value: git-source
volumeMounts:
- mountPath: /var/lib/containers
name: varlibcontainers
- name: push
securityContext:
privileged: true
image: appsody/appsody-buildah:0.5.3-buildah1.9.0
command: ['buildah', 'push', '--tls-verify=false', '$(inputs.resources.docker-image.url)', 'docker://$(inputs.resources.docker-image.url)']
volumeMounts:
- mountPath: /var/lib/containers
name: varlibcontainers
- name: deploy-image
image: kabanero/kabanero-utils
command: ['/bin/sh']
args: ['-c', 'cd /workspace/$gitsource && kubectl apply -f $(YAMLFILE)']
env:
- name: gitsource
value: git-source
- name: YAMLFILE
value: $(inputs.params.app-deploy-file-name)
volumes:
- name: varlibcontainers
emptyDir: {}