mirror of https://github.com/coder/code-server.git
Forward minify environment variable to Docker build
This commit is contained in:
parent
e53d6bce68
commit
b9fc40409a
|
@ -6,6 +6,7 @@ function docker-build() {
|
||||||
local target="${TARGET:-}"
|
local target="${TARGET:-}"
|
||||||
local image="codercom/nbin-${target}"
|
local image="codercom/nbin-${target}"
|
||||||
local token="${GITHUB_TOKEN:-}"
|
local token="${GITHUB_TOKEN:-}"
|
||||||
|
local minify="${MINIFY:-}"
|
||||||
if [[ "${target}" == "linux" ]] ; then
|
if [[ "${target}" == "linux" ]] ; then
|
||||||
image="codercom/nbin-centos"
|
image="codercom/nbin-centos"
|
||||||
fi
|
fi
|
||||||
|
@ -27,7 +28,7 @@ function docker-build() {
|
||||||
local command="${1}" ; shift
|
local command="${1}" ; shift
|
||||||
local args="'${vscodeVersion}' '${codeServerVersion}' '${target}'"
|
local args="'${vscodeVersion}' '${codeServerVersion}' '${target}'"
|
||||||
docker exec "${containerId}" \
|
docker exec "${containerId}" \
|
||||||
bash -c "cd /src && CI=true GITHUB_TOKEN=${token} yarn ${command} ${args}"
|
bash -c "cd /src && CI=true GITHUB_TOKEN=${token} MINIFY=${minify} yarn ${command} ${args}"
|
||||||
}
|
}
|
||||||
|
|
||||||
docker cp ./. "${containerId}":/src
|
docker cp ./. "${containerId}":/src
|
||||||
|
|
Loading…
Reference in New Issue