Skip to content

Commit 2f8d392

Browse files
author
Ayane Satomi
committed
scripts/ci: skip docker builds on non-Alpine targets
Signed-off-by: Ayane Satomi <[email protected]>
1 parent 0008634 commit 2f8d392

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/ci.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function main() {
6060
local vscodeVersion="${VSCODE_VERSION:-}"
6161
local ostype="${OSTYPE:-}"
6262
local package="${PACKAGE:-}"
63+
local target="${TARGET:-}"
6364

6465
if [[ -z "${codeServerVersion}" ]] ; then
6566
>&2 echo "Must set VERSION environment variable"; exit 1
@@ -69,7 +70,7 @@ function main() {
6970
>&2 echo "Must set VSCODE_VERSION environment variable"; exit 1
7071
fi
7172

72-
if [[ "${ostype}" == "darwin"* ]] && [[ "${ostype}" == "linux" ]]; then
73+
if [[ "${ostype}" == "darwin"* ]] && [[ "${target}" == "linux" ]]; then
7374
local-build
7475
else
7576
docker-build

0 commit comments

Comments
 (0)