-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpipeline.yml
71 lines (66 loc) · 1.47 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
---
resources:
- name: interval
type: time
source:
interval: 1h
- name: concourse-mgmt
type: git
# reduce chance of hitting github rate limit
check_every: 5m
source:
branch: master
private_key: ((github_private_key))
uri: git@github.com:EngineerBetter/concourse-mgmt.git
paths:
- pipeline.yml
- tasks
- name: concourse-team-configs
type: git
# reduce chance of hitting github rate limit
check_every: 5m
source:
branch: master
private_key: ((github_private_key))
uri: git@github.com:EngineerBetter/concourse-mgmt.git
paths:
- configs/((env))
- name: task-image
type: registry-image
source:
repository: engineerbetter/cf-ops
tag: latest
jobs:
- name: set-pipeline
serial: true
plan:
- get: concourse-mgmt
trigger: true
- set_pipeline: self
file: concourse-mgmt/pipeline.yml
var_files:
- concourse-mgmt/vars/((env)).yml
vars:
env: ((env))
- name: set-teams
serial: true
plan:
- in_parallel:
steps:
- get: interval
trigger: true
- get: concourse-mgmt
trigger: true
passed:
- set-pipeline
- get: concourse-team-configs
trigger: true
- get: task-image
- task: set-all-teams
image: task-image
file: concourse-mgmt/tasks/set-team/task.yml
params:
ENV: ((env))
CONCOURSE_PASSWORD: ((admin_password))
CONCOURSE_URL: ((concourse_url))
CONCOURSE_USERNAME: ((concourse_admin_username))