-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pipeline.yml
144 lines (139 loc) · 3.79 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
resources:
- name: git
type: git
check_every: 10m
source:
private_key: ((halfpipe-github.private_key))
uri: git@github.com:springernature/halfpipe-docker-compose.git
branch: main
- name: version
type: semver
check_every: 24h
source:
driver: git
uri: git@github.com:springernature/halfpipe-docker-compose.git
branch: version
file: version
private_key: ((halfpipe-docker-compose.deploy-key))
initial_version: 1.0.0
- name: docker
type: docker-image
check_every: 24h
source:
repository: eu.gcr.io/halfpipe-io/halfpipe-docker-compose
username: _json_key
password: ((halfpipe-gcr.private_key))
jobs:
- name: build
serial: true
plan:
- get: git
trigger: true
- get: version
params: {bump: minor}
- put: docker
params:
build: git
tag: version/version
tag_as_latest: true
additional_tags: git/tags_dev
skip_download: true
- put: version
params:
file: version/version
- name: test
serial: true
plan:
- get: git
trigger: true
passed: [build]
- get: docker
trigger: true
passed: [build]
params:
skip_download: true
- task: test success
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source:
repository: eu.gcr.io/halfpipe-io/halfpipe-docker-compose
username: _json_key
password: ((halfpipe-gcr.private_key))
params:
HALFPIPE_CACHE_TEAM: halfpipe-docker-compose-test
GCR_PRIVATE_KEY: ((halfpipe-gcr.private_key))
run:
path: docker.sh
args:
- -c
- |
set -e
docker login -u _json_key -p "$GCR_PRIVATE_KEY" https://eu.gcr.io
docker-compose run -e HALFPIPE_CACHE_TEAM app
dir: git/integration/01_success
inputs:
- name: git
- task: test missing nfs volume
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source:
repository: eu.gcr.io/halfpipe-io/halfpipe-docker-compose
username: _json_key
password: ((halfpipe-gcr.private_key))
params:
HALFPIPE_CACHE_HOST: not-here-host
run:
path: docker.sh
args:
- -c
- |
set -e
docker-compose run -e HALFPIPE_CACHE_HOST app
dir: git/integration/02_unavailable
inputs:
- name: git
- task: test backward compatibility
privileged: true
config:
platform: linux
image_resource:
type: docker-image
source:
repository: eu.gcr.io/halfpipe-io/halfpipe-docker-compose
username: _json_key
password: ((halfpipe-gcr.private_key))
params:
HALFPIPE_CACHE_TEAM: halfpipe-docker-compose-test
run:
path: docker.sh
args:
- -c
- |
set -e
docker-compose run -e HALFPIPE_CACHE_TEAM app
dir: git/integration/03_backward_compatibility
inputs:
- name: git
- name: deploy
serial: true
plan:
- get: git
passed: [test]
- get: docker
params:
save: true
- get: version
- put: docker
params:
load: docker
cache: true
cache_tag: version/version
tag: git/tags_stable
tag_as_latest: true
skip_download: true