Skip to content

Commit 96c12d1

Browse files
ci: Add POSTGRES_HOST variable and debug step
This commit updates the `ci.yml` workflow to explicitly set the `POSTGRES_HOST` environment variable to `db`. This ensures the web service can reliably connect to the PostgreSQL container. Additionally, a new step has been added to `cat` the `.env` file, providing better visibility into the environment configuration for debugging purposes.
1 parent ac30d5b commit 96c12d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ jobs:
4848
echo "POSTGRES_DATABASE=${{ secrets.POSTGRES_DB }}" >> .env #
4949
echo "POSTGRES_USERNAME=${{ secrets.POSTGRES_USER }}" >> .env #
5050
echo "POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}" >> .env
51-
51+
echo "POSTGRES_HOST=db" >> .env
52+
5253
echo "ANTIFRAUD_INTERNAL_PORT=8081" >> .env
5354
echo "ANTIFRAUD_EXTERNAL_PORT=8081" >> .env
5455
echo "ANTIFRAUD_CACHE_MS=1000" >> .env
55-
56+
- name: Debug .env file
57+
run: cat .env
5658

5759
- name: Build and run Docker containers
5860
run: docker compose up -d --build

0 commit comments

Comments
 (0)