File tree Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,14 @@ steps:
50
50
event : tag
51
51
52
52
- name : publish:docker
53
- image : banzaicloud/drone-kaniko
53
+ image : plugins/docker
54
54
settings :
55
55
username :
56
56
from_secret : docker_user
57
57
password :
58
58
from_secret : docker_password
59
+ repo : codercom/code-server
60
+ dockerfile : scripts/ci.dockerfile
59
61
tags :
60
62
- latest
61
63
- v2
@@ -170,17 +172,19 @@ steps:
170
172
event : tag
171
173
172
174
- name : publish:docker
173
- image : banzaicloud/drone-kaniko
175
+ image : plugins/docker
174
176
settings :
175
177
username :
176
178
from_secret : docker_user
177
179
password :
178
180
from_secret : docker_password
181
+ repo : codercom/code-server
182
+ dockerfile : scripts/ci.dockerfile
179
183
tags :
180
184
- arm64
181
185
- ${DRONE_TAG}-arm64
182
186
build_args :
183
- - tag=$DRONE_TAG
187
+ - tag=${ DRONE_TAG}
184
188
when :
185
189
event : tag
186
190
@@ -289,17 +293,19 @@ steps:
289
293
event : tag
290
294
291
295
- name : publish:docker
292
- image : banzaicloud/drone-kaniko
296
+ image : plugins/docker
293
297
settings :
294
298
username :
295
299
from_secret : docker_user
296
300
password :
297
301
from_secret : docker_password
302
+ repo : codercom/code-server
303
+ dockerfile : scripts/ci.dockerfile
298
304
tags :
299
305
- arm
300
306
- ${DRONE_TAG}-arm
301
307
build_args :
302
- - tag=$DRONE_TAG
308
+ - tag=${ DRONE_TAG}
303
309
when :
304
310
event : tag
305
311
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ COPY . .
12
12
13
13
RUN yarn \
14
14
&& DRONE_TAG="$tag" MINIFY=true BINARY=true GITHUB_TOKEN="$githubToken" ./scripts/ci.bash \
15
- && mv /src/binaries/* /src/binaries/code-server \
16
15
&& rm -r /src/build \
17
16
&& rm -r /src/source
18
17
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function main() {
21
21
mv " vscode-$vscode_version -source" " source/vscode-$vscode_version -source"
22
22
fi
23
23
24
- # Only minify and package on tags since that's when releases are pushed.
24
+ # Always minify and package on tags since that's when releases are pushed.
25
25
if [[ -n ${DRONE_TAG:- } || -n ${TRAVIS_TAG:- } ]] ; then
26
26
export MINIFY=" true"
27
27
export PACKAGE=" true"
@@ -32,8 +32,17 @@ function main() {
32
32
}
33
33
34
34
run-yarn build
35
- [[ -n ${PACKAGE:- } || -n ${BINARY:- } ]] && run-yarn binary
36
- [[ -n ${PACKAGE:- } ]] && run-yarn package
35
+ if [[ -n ${PACKAGE:- } || -n ${BINARY:- } ]] ; then
36
+ run-yarn binary
37
+ fi
38
+ if [[ -n ${PACKAGE:- } ]] ; then
39
+ run-yarn package
40
+ fi
41
+
42
+ # In this case provide a plainly named "code-server" binary.
43
+ if [[ -n ${BINARY:- } ]] ; then
44
+ mv binaries/code-server* -vsc* binaries/code-server
45
+ fi
37
46
}
38
47
39
48
main " $@ "
You can’t perform that action at this time.
0 commit comments