-
Notifications
You must be signed in to change notification settings - Fork 9
/
task.yaml
46 lines (43 loc) · 961 Bytes
/
task.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
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
generateName: build-hello
spec:
serviceAccount: build-bot
taskSpec:
inputs:
resources:
- name: source
type: git
steps:
- name: build-and-push
workingdir: /workspace/source
image: gcr.io/kaniko-project/executor:v0.9.0
env:
- name: DOCKER_CONFIG
value: /builder/home/.docker
command:
- /kaniko/executor
- --dockerfile=./Dockerfile
- --context=/workspace/source/
- --destination=index.docker.io/${APP_IMAGE}
- name: trigger-service
workingdir: /workspace/source
image: duglin/curl
command:
- /usr/bin/curl
- -X
- POST
- ${REBUILDURL}
- -H
- ce-type:newimage
- -d
- "{}"
inputs:
resources:
- name: source
resourceSpec:
type: git
params:
- name: url
value: https://github.com/${GITREPO}