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 3636 dist : trusty
3737 env : DOCKER_BUILD="true"
3838 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 .
4040
4141git :
4242 depth : 3
Original file line number Diff line number Diff line change 11FROM node:10.16.0
22ARG codeServerVersion=docker
33ARG vscodeVersion
4+ ARG githubToken
45
56# Install VS Code's deps. These are the only two it seems we need.
67RUN apt-get update && apt-get install -y \
@@ -14,7 +15,7 @@ WORKDIR /src
1415COPY . .
1516
1617RUN yarn \
17- && MINIFY=true yarn build "${vscodeVersion}" "${codeServerVersion}" \
18+ && MINIFY=true GITHUB_TOKEN= "${githubToken}" yarn build "${vscodeVersion}" "${codeServerVersion}" \
1819 && yarn binary "${vscodeVersion}" "${codeServerVersion}" \
1920 && mv "/src/build/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64-built/code-server${codeServerVersion}-vsc${vscodeVersion}-linux-x86_64" /src/build/code-server \
2021 && rm -r /src/build/vscode-* \
You can’t perform that action at this time.
0 commit comments