-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgorez-pipeline.bak
75 lines (67 loc) · 1.6 KB
/
gorez-pipeline.bak
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
---
resource_types:
- name: cf-goehmen
type: docker-image
source:
repository: concourse/cf-resource
- name: twitter
type: docker-image
source:
repository: ecsteam/twitter-concourse-resource
resources:
- name: resource-gorez-app
type: git
source:
uri: https://github.com/goehmen/gorez.git
- name: tweet-source
type: git
source:
uri: https://github.com/goehmen/gorez.git
- 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}}
- name: resource-deploy-gorez-app
type: cf-goehmen
# type: cf
source:
api: {{cf-api}}
username: {{cf-username}}
password: {{cf-password}}
organization: {{cf-organization}}
space: {{cf-space}}
skip_cert_check: true
- name: version
type: semver
source:
driver: s3
initial_version: 0.0.1
access_key_id: {{aws_access_key_id}}
secret_access_key: {{aws_secret_access_key}}
bucket: {{version_aws_bucket}}
region_name: us-east-1
key: version
jobs:
- name: job-deploy-app
serial: true
plan:
- {get: resource-gorez-app, trigger: true}
- get: version
params: {bump: patch}
- put: resource-deploy-gorez-app
params:
manifest: resource-gorez-app/manifest.yml
path: resource-gorez-app
- get: tweet-source
- put: tweet
params:
media:
- tweet-source/images/GreenBuild.png
status: >
POW!!! Concourse deployed my app! (build ${BUILD_ID})
- put: version
params:
file: version/number