Skip to content

Commit

Permalink
Use CI-specific docker-compose in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasgarciaisaia committed Mar 6, 2024
1 parent 8e1f374 commit edeef4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:

- name: Test internal connectivity
run: |
cp docker-compose.ci.yml docker-compose.override.yml
docker compose up --wait db
docker compose run --rm -e PGPASSWORD="${POSTGRES_PASSWORD}" db psql --host db --username planwise --list || true
timeout 60s sh -c "while ! nc -z $(docker inspect planwise-db-1 | jq -r '.[0].NetworkSettings.Networks.planwise_default.IPAddress') 5432; do sleep 1; done" || true
Expand All @@ -21,6 +22,7 @@ jobs:
- name: Set environment up
run: |
mv docker-compose.ci.yml docker-compose.override.yml
docker compose pull
docker compose build
docker compose run --rm client npm install
Expand Down
3 changes: 0 additions & 3 deletions docker-compose.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ version: '2'

services:
app:
volumes:
- .:/app
- ~/cache/.m2:/root/.m2
environment:
DATABASE_URL: "jdbc:postgresql://db/planwise?user=postgres&password=planwise"
TEST_DATABASE_URL: "jdbc:postgresql://db/planwise-test?user=postgres&password=planwise"
Expand Down

0 comments on commit edeef4c

Please sign in to comment.