This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
plan_director.yml
119 lines (111 loc) · 3.07 KB
/
plan_director.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
resource_types:
# used to check for PRs and update status at Github
# - name: pull-request
# type: docker-image
# source:
# repository: jtarchie/pr
- name: rsync-resource
type: docker-image
source:
repository: msarahan/concourse-rsync-resource
tag: latest
resources:
# - name: recipe-repo-source
# type: pull-request
# source:
# repo: {{recipe-repo}}
# access_token: {{recipe-repo-access-token}}
- name: recipe-repo-source
type: git
source:
uri: {{recipe-repo}}
- name: rsync-config
type: rsync-resource
source:
server: {{intermediate-server}}
base_dir: {{intermediate-config-folder}}
user : {{intermediate-user}}
private_key: {{intermediate-private-key}}
disable_version_path: true
- name: rsync-recipes
type: rsync-resource
source:
server: {{intermediate-server}}
base_dir: {{intermediate-recipe-folder}}
user : {{intermediate-user}}
private_key: {{intermediate-private-key}}
disable_version_path: true
jobs:
- name: collect-tasks
public: True
plan:
# pull down any PR submitted
- get: recipe-repo-source
trigger: true
submodules: all
# update status for that PR
# - put: recipe-repo-source
# params:
# path: recipe-repo-source
# status: pending
- get: rsync-config
- task: c3i-examine
config:
# seems redundant, but you need this in order to have the repo source code folder show up
inputs:
- name: recipe-repo-source
- name: rsync-config
outputs:
- name: output
image_resource:
type: docker-image
source:
repository: msarahan/conda-concourse-ci
platform: linux
run:
# this should output plan.yaml (credentials baked in) and recipes. These will be in a folder
# named for the git revision that we're on right now.
path: c3i
dir: recipe-repo-source
args:
- examine
- {{base-name}}
- .
- --matrix-base-dir
- ../rsync-config/
- --output-dir
# this is evaluated by c3i, not by concourse.
- "../output/{git_identifier}"
- put: rsync-recipes
params:
sync_dir: "output"
# - put: recipe-repo-source
# params:
# path: recipe-repo-source
# status: pending
- task: set-execute-pipeline
config:
inputs:
- name: rsync-config
- name: recipe-repo-source
- name: output
image_resource:
type: docker-image
source:
repository: msarahan/conda-concourse-ci
platform: linux
run:
path: c3i
# TODO: need to determine what private/public status is, and set child accordingly
args:
- submit
- {{base-name}}
- --pipeline-file
- "output/{git_identifier}/plan.yml"
- --pipeline-name
# these template variables are filled in by the c3i program, NOT concourse.
- "{base_name}-execute-{git_identifier}"
- --src-dir
- recipe-repo-source
- --config-root-dir
- rsync-config/