Skip to content

Commit

Permalink
fix: cleanup dynamic bash args logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed Feb 24, 2024
1 parent 448f23e commit 2653ffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions apps/examples/nextjs/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ services:
dockerfile: apps/examples/nextjs/Dockerfile
labels:
- "com.example.description=Auth.js Next.js Example App"
platforms:
- "linux/amd64"
- "linux/arm64"
ports:
- "3000:3000"
6 changes: 4 additions & 2 deletions packages/core/test/docker/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
cd ../../apps/examples/nextjs/ || exit

args=("-f" "docker-compose.yml")
if [[ "$CI" ]]; then
args+=("--env-file ../../../packages/core/.env")
if [[ -z "${CI}" ]]; then
args+=("--env-file" "../../../packages/core/.env")
fi
args+=("up" "--detach" "--build")

echo "Running: docker-compose ${args[*]}"

docker-compose "${args[@]}"

echo "waiting 10 seconds for container to start..."
Expand Down

0 comments on commit 2653ffb

Please sign in to comment.