forked from cloudfoundry-community/simple-go-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.yml
71 lines (66 loc) · 1.33 KB
/
pipeline.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
62
63
64
65
66
67
68
69
70
71
---
jobs:
- name: unit-test-1
public: true
serial: true
plan:
- get: simple-app
trigger: true
- task: golang-test-simple-app
config:
platform: linux
image: docker:///golang#1.4.1
inputs:
- name: simple-app
run:
path: ./simple-app/test
- name: deploy-app
public: true
serial: true
plan:
- get: simple-app
passed: [unit-test-1]
trigger: true
- aggregate:
- put: deploy-cf-local
params:
manifest: simple-app/manifest.yml
path: simple-app
- put: deploy-cf-pws
params:
manifest: simple-app/manifest.yml
path: simple-app
resources:
- name: simple-app
type: git
source:
uri: https://github.com/danyoung/simple-go-web-app.git
- name: deploy-cf-local
type: cf
source:
api: {{cf0-api}}
username: {{cf0-username}}
password: {{cf0-password}}
organization: {{cf0-organization}}
space: {{cf0-space}}
skip_cert_check: true
- name: deploy-cf-pws
type: cf
source:
api: {{cf1-api}}
username: {{cf1-username}}
password: {{cf1-password}}
organization: {{cf1-organization}}
space: {{cf1-space}}
skip_cert_check: false
groups:
- name: pipeline
jobs:
- unit-test-1
- deploy-app
- name: tests
jobs:
- unit-test-1
- name: deploy
jobs:
- deploy-app