forked from argoproj/argo-workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.yaml
48 lines (46 loc) · 1.02 KB
/
ci.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
apiVersion: argoproj.io/v1
kind: Workflow
metadata:
generateName: argo-wf-
spec:
entrypoint: ci-example
volumeClaimTemplates:
- metadata:
name: workdir
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
templates:
- name: ci-example
steps:
- - name: build
template: build
- - name: test
template: test
- name: build
inputs:
artifacts:
- name: CODE
path: /go/src/github.com/golang/example
git:
url: https://github.com/golang/example.git
container:
image: golang:1.8
command: [sh, -c]
args: ["
cd /go/src/github.com/golang/example/hello &&
go build -v .
"]
volumeMounts:
- name: workdir
mountPath: /go
- name: test
container:
image: debian:9.1
command: [sh, -c]
args: ["/go/src/github.com/golang/example/hello/hello ; sleep 9999; echo done"]
volumeMounts:
- name: workdir
mountPath: /go