-
Notifications
You must be signed in to change notification settings - Fork 380
/
docker-compose.yml
190 lines (175 loc) · 5.89 KB
/
docker-compose.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# REPO_PREFIX is used in CI to deploy to other docker registries than dockerhub.
## If you wish to release Docker image(s) with alternate (i.e. non-primary) versions, do not modify this file in the master branch.
## Follow the instructions in the CONTRIBUTING document for alternate versions and work instead in a feature branch.
## Comment out the tags entries for latest tags below so that no latest tag is created.
## Comment out the INCLUDED_IMAGE_SHORT_TAG so that this tag is not reassigned to a non-primary version.
services:
factory:
image: ${REPO_PREFIX-}cypress/factory
build:
dockerfile: factory.Dockerfile
target: factory
context: .
args:
BASE_IMAGE: ${BASE_IMAGE}
FACTORY_DEFAULT_NODE_VERSION: ${FACTORY_DEFAULT_NODE_VERSION}
tags:
- ${REPO_PREFIX-}cypress/factory:latest # comment out for release of alternate version
- ${REPO_PREFIX-}cypress/factory:${FACTORY_VERSION}
command: node -v
included:
image: ${REPO_PREFIX-}cypress/included
build:
target: included_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
CHROME_VERSION: ${CHROME_VERSION}
CYPRESS_VERSION: ${CYPRESS_VERSION}
EDGE_VERSION: ${EDGE_VERSION}
FIREFOX_VERSION: ${FIREFOX_VERSION}
YARN_VERSION: ${YARN_VERSION}
# WEBKIT_VERSION: ${WEBKIT_VERSION}
tags:
- ${REPO_PREFIX-}cypress/included:latest # comment out for release of alternate version
- ${REPO_PREFIX-}cypress/included:${INCLUDED_IMAGE_SHORT_TAG} # comment out for release of alternate version
- ${REPO_PREFIX-}cypress/included:${INCLUDED_IMAGE_TAG}
command: node -v
browsers:
image: ${REPO_PREFIX-}cypress/browsers
build:
target: default_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
YARN_VERSION: ${YARN_VERSION}
CHROME_VERSION: ${CHROME_VERSION}
FIREFOX_VERSION: ${FIREFOX_VERSION}
EDGE_VERSION: ${EDGE_VERSION}
tags:
- ${REPO_PREFIX-}cypress/browsers:latest # comment out for release of alternate version
- ${REPO_PREFIX-}cypress/browsers:${BROWSERS_IMAGE_SHORT_TAG}
- ${REPO_PREFIX-}cypress/browsers:${BROWSERS_IMAGE_TAG}
command: node -v
base:
image: ${REPO_PREFIX-}cypress/base
build:
target: default_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
YARN_VERSION: ${YARN_VERSION}
tags:
- ${REPO_PREFIX-}cypress/base:latest # comment out for release of alternate version
- ${REPO_PREFIX-}cypress/base:${BASE_IMAGE_TAG}
command: node -v
## Unused images that we could release in the future if we choose.
chrome:
image: "${REPO_PREFIX-}cypress/chrome"
build:
target: default_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
CHROME_VERSION: ${CHROME_VERSION}
tags:
- ${REPO_PREFIX-}cypress/chrome:${CHROME_VERSION}
command: google-chrome --version
edge:
image: ${REPO_PREFIX-}cypress/edge
build:
target: default_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
EDGE_VERSION: ${EDGE_VERSION}
tags:
- ${REPO_PREFIX-}cypress/edge:${EDGE_VERSION}
command: edge --version
firefox:
image: ${REPO_PREFIX-}cypress/firefox
build:
target: default_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
FIREFOX_VERSION: ${FIREFOX_VERSION}
tags:
- ${REPO_PREFIX-}cypress/firefox:${FIREFOX_VERSION}
command: firefox --version
# webkit:
# image: ${REPO_PREFIX-}cypress/webkit
# build:
# target: default_image
# context: .
# args:
# FACTORY_VERSION: ${FACTORY_VERSION}
# WEBKIT_VERSION: ${WEBKIT_VERSION}
# tags:
# - ${REPO_PREFIX-}cypress/webkit:${WEBKIT_VERSION}
# command: webkit --version
cypress:
image: ${REPO_PREFIX-}cypress/cypress
build:
target: default_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
CYPRESS_VERSION: ${CYPRESS_VERSION}
tags:
- ${REPO_PREFIX-}cypress/cypress:${CYPRESS_VERSION}
command: cypress verify
cypress-chrome:
image: ${REPO_PREFIX-}cypress/cypress-chrome
build:
target: default_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
CYPRESS_VERSION: ${CYPRESS_VERSION}
CHROME_VERSION: ${CHROME_VERSION}
tags:
- ${REPO_PREFIX-}cypress/cypress-chrome:cypress-${CYPRESS_VERSION}-chrome-${CHROME_VERSION}
command: node -v
cypress-edge:
image: ${REPO_PREFIX-}cypress/cypress-edge
build:
target: default_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
CYPRESS_VERSION: ${CYPRESS_VERSION}
EDGE_VERSION: ${EDGE_VERSION}
tags:
- ${REPO_PREFIX-}cypress/cypress-edge:cypress-${CYPRESS_VERSION}-edge-${EDGE_VERSION}
command: node -v
cypress-firefox:
image: ${REPO_PREFIX-}cypress/cypress-firefox
build:
target: default_image
context: .
args:
NODE_VERSION: ${NODE_VERSION}
FACTORY_VERSION: ${FACTORY_VERSION}
CYPRESS_VERSION: ${CYPRESS_VERSION}
FIREFOX_VERSION: ${FIREFOX_VERSION}
tags:
- ${REPO_PREFIX-}cypress/cypress-firefox:cypress-${CYPRESS_VERSION}-firefox-${FIREFOX_VERSION}
command: node -v
## Test image
test-node-default:
build:
target: default_image
context: .
args:
FACTORY_VERSION: ${FACTORY_VERSION}
command: node -v