-
Notifications
You must be signed in to change notification settings - Fork 28
/
kubo-release-pr.yml
89 lines (81 loc) · 1.92 KB
/
kubo-release-pr.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
---
resource_types:
- name: pull-request
type: docker-image
source:
repository: teliaoss/github-pr-resource
- name: gcs
type: docker-image
source:
repository: frodenas/gcs-resource
- name: bosh-errand
type: docker-image
source:
repository: pcfkubo/bosh2-errand-resource
tag: v0.1.3-dev
resources:
- name: git-kubo-ci
type: git
source:
uri: https://github.com/pivotal-cf-experimental/kubo-ci
branch: master
- name: git-kubo-release
type: pull-request
source:
repository: cloudfoundry-incubator/kubo-release
access_token: ((github-token-key))
- name: gcs-pr-release-tarball
type: gcs
source:
json_key: ((gcs-json-key))
bucket: kubo-pipeline-store
versioned_file: release-pr/kubo-release.tgz
- name: kubo-version
type: semver
source:
key: versions/kubo-version
access_key_id: ((gcs-access-key-id))
secret_access_key: ((gcs-secret-access-key))
bucket: kubo-pipeline-store
region_name: us-east1
endpoint: storage.googleapis.com
jobs:
- name: run-unit-tests
plan:
- get: git-kubo-ci
- get: git-kubo-release
version: every
- put: git-kubo-release
params:
path: git-kubo-release
status: pending
- task: run-unit-tests
file: git-kubo-ci/tasks/run-release-unit-tests.yml
on_failure: &on_failure
put: git-kubo-release
params:
path: git-kubo-release
status: failure
- name: build-kubo-release
plan:
- aggregate:
- get: git-kubo-ci
- get: kubo-version
params:
pre: dev
- get: git-kubo-release
passed: [ 'run-unit-tests' ]
trigger: true
- put: git-kubo-release
params:
path: git-kubo-release
status: pending
- task: build-kubo-release
file: git-kubo-ci/tasks/build-kubo-release.yml
on_failure: *on_failure
- put: gcs-pr-release-tarball
params:
file: kubo-release/kubo-release-*.tgz
- put: kubo-version
params:
pre: dev