Detect target automatically

This removes the potential for a bad build because the native Node
modules currently can only be built on the target system, so specifying
a target for something other than the system your are building on will
not work.
This commit is contained in:
Asher
2019-08-21 11:29:28 -05:00
parent c2be0ec71b
commit 80050d0d9d
3 changed files with 21 additions and 14 deletions

View File

@ -26,7 +26,7 @@ function docker-build() {
function docker-exec() {
local command="${1}" ; shift
local args="'${vscodeVersion}' '${codeServerVersion}' '${target}'"
local args="'${vscodeVersion}' '${codeServerVersion}'"
docker exec "${containerId}" \
bash -c "cd /src && CI=true GITHUB_TOKEN=${token} MINIFY=${minify} yarn ${command} ${args}"
}