forked from vmware-tanzu-learning/pal-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpipeline.yml
More file actions
83 lines (76 loc) · 1.88 KB
/
pipeline.yml
File metadata and controls
83 lines (76 loc) · 1.88 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
resources:
- name: pal-tracker
type: git
source:
uri: {{github-repository}}
branch: master
private_key: {{github-private-key}}
- name: pal-tracker-artifacts
type: s3
source:
bucket: {{aws-bucket}}
regexp: releases/pal-tracker-(.*).jar
access_key_id: {{aws-access-key-id}}
secret_access_key: {{aws-secret-access-key}}
- name: version
type: semver
source:
bucket: {{aws-bucket}}
key: pal-tracker/version
access_key_id: {{aws-access-key-id}}
secret_access_key: {{aws-secret-access-key}}
- name: review-deployment
type: cf
source:
api: {{cf-api-url}}
username: {{cf-username}}
password: {{cf-password}}
organization: {{cf-org}}
space: review
- name: production-deployment
type: cf
source:
api: {{cf-api-url}}
username: {{cf-username}}
password: {{cf-password}}
organization: {{cf-org}}
space: production
jobs:
- name: build
plan:
- get: pal-tracker
trigger: true
- get: version
params: {bump: patch}
- task: build and test
file: pal-tracker/ci/build.yml
- put: pal-tracker-artifacts
params:
file: build-output/pal-tracker-*.jar
- put: version
params:
file: version/number
- name: deploy-review
plan:
- get: pal-tracker
- get: pal-tracker-artifacts
trigger: true
passed: [build]
- put: review-deployment
params:
manifest: pal-tracker/manifest-review.yml
path: pal-tracker-artifacts/pal-tracker-*.jar
environment_variables:
WELCOME_MESSAGE: "Hello from the review environment"
- name: deploy-production
plan:
- get: pal-tracker
- get: pal-tracker-artifacts
passed: [deploy-review]
- put: production-deployment
params:
manifest: pal-tracker/manifest-production.yml
path: pal-tracker-artifacts/pal-tracker-*.jar
environment_variables:
WELCOME_MESSAGE: "Hello from the production environment"