Skip to content

Commit

Permalink
check ZOMBIENET_IMAGE env var (#1257)
Browse files Browse the repository at this point in the history
* check ZOMBIENET_IMAGE env var

* fmt
  • Loading branch information
pepoviola authored Aug 18, 2023
1 parent e8c5f86 commit 0746c74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion javascript/packages/cli/src/actions/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export async function spawn(
}
}

const inCI = process.env.RUN_IN_CONTAINER === "1";
const inCI =
process.env.RUN_IN_CONTAINER === "1" ||
process.env.ZOMBIENET_IMAGE !== undefined;
const options = {
monitor,
spawnConcurrency,
Expand Down
4 changes: 3 additions & 1 deletion javascript/packages/cli/src/actions/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export async function test(
}

process.env.DEBUG = "zombie";
const inCI = process.env.RUN_IN_CONTAINER === "1";
const inCI =
process.env.RUN_IN_CONTAINER === "1" ||
process.env.ZOMBIENET_IMAGE !== undefined;
// use `k8s` as default
const providerToUse =
opts.provider && AVAILABLE_PROVIDERS.includes(opts.provider)
Expand Down

0 comments on commit 0746c74

Please sign in to comment.