-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.pipeline.pingpong.yml
61 lines (60 loc) · 1.33 KB
/
.pipeline.pingpong.yml
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
54
55
56
57
58
59
60
61
# This is an example. A working repo can be found at: https://github.com/AcalephStorage/pingpong
---
kind: Pipeline
apiVersion: v1alpha1
metadata:
name: pingpong
namespace: acaleph
spec:
selector:
matchLabels:
app: pingpong
type: api
template:
metadata:
name: pingpong
labels:
app: service
type: api
notif:
- type: slack
secrets:
- acalephnotifier
- quayregistrycreds
stages:
- name: Unit Test
type: command
params:
image: golang:1.6
command:
- make
- test
- name: Create Binary
type: command
params:
image: golang:1.6
command:
- make
- build
artifacts:
- build/bin/**
- name: Package App
type: command
params:
image: docker:1.8.3
command:
- ./package-app.sh
- /kontinuous/src/artifacts/pingpong
- name: Integration Test
type: command
params:
image: busybox:latest
command:
- ./integration-test.sh
- http://pingpong-test:8080
dependencies:
- integration-test.yaml
- name: Deploy App
type: deploy
params:
deploy_file: manifest.yaml