File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 36
36
dist : trusty
37
37
env : DOCKER_BUILD="true"
38
38
if : branch == master AND tag IS blank
39
- script : docker build -e GITHUB_TOKEN ="$GITHUB_TOKEN" --build-arg codeServerVersion="$VERSION" --build-arg vscodeVersion="$VSCODE_VERSION" -t codercom/code-server:"$VERSION" -t codercom/code-server:v2 .
39
+ script : docker build --build-arg githubToken ="$GITHUB_TOKEN" --build-arg codeServerVersion="$VERSION" --build-arg vscodeVersion="$VSCODE_VERSION" -t codercom/code-server:"$VERSION" -t codercom/code-server:v2 .
40
40
41
41
git :
42
42
depth : 3
Original file line number Diff line number Diff line change 1
1
FROM node:10.16.0
2
2
ARG codeServerVersion=docker
3
3
ARG vscodeVersion
4
+ ARG githubToken
4
5
5
6
# Install VS Code's deps. These are the only two it seems we need.
6
7
RUN apt-get update && apt-get install -y \
@@ -14,7 +15,7 @@ WORKDIR /src
14
15
COPY . .
15
16
16
17
RUN yarn \
17
- && MINIFY=true yarn build "${vscodeVersion}" "${codeServerVersion}" \
18
+ && MINIFY=true GITHUB_TOKEN= "${githubToken}" yarn build "${vscodeVersion}" "${codeServerVersion}" \
18
19
&& yarn binary "${vscodeVersion}" "${codeServerVersion}" \
19
20
&& mv "/src/build/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64-built/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64" /src/build/code-server \
20
21
&& rm -r /src/build/vscode-* \
You can’t perform that action at this time.
0 commit comments