-
Notifications
You must be signed in to change notification settings - Fork 1
/
zb-concourse.yml
100 lines (91 loc) · 2.4 KB
/
zb-concourse.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
resource_types:
- name: twitter
type: docker-image
source:
repository: ecsteam/twitter-concourse-resource
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-(.*).tgz
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
- name: tweet
type: twitter
source:
consumer_key: {{twitter-consumer-key}}
consumer_secret: {{twitter-consumer-secret}}
access_token: {{twitter-access-token}}
access_token_secret: {{twitter-access-token-secret}}
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-*.tgz
- put: version
params:
file: version/number
- name: deploy-review
plan:
- get: pal-tracker-artifacts
params: {unpack: true}
trigger: true
passed: [build]
- put: review-deployment
params:
manifest: pal-tracker-artifacts/manifest-review.yml
path: pal-tracker-artifacts
environment_variables:
WELCOME_MESSAGE: Hello from the review environment
- name: deploy-production
plan:
- get: pal-tracker-artifacts
params: {unpack: true}
passed: [deploy-review]
- put: production-deployment
params:
manifest: pal-tracker-artifacts/manifest-production.yml
path: pal-tracker-artifacts
environment_variables:
WELCOME_MESSAGE: Hello from the production environment
- put: tweet
params:
status: Concourse build ${BUILD_ID} deploy to prod...