Skip to content

Commit

Permalink
fix: envs on deploy workflow migration
Browse files Browse the repository at this point in the history
  • Loading branch information
asnunes committed Jan 12, 2024
1 parent affb1d3 commit b63a2e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ jobs:
cd $GITHUB_WORKSPACE
docker build --progress=plain -t tweteroo-migrations -f Dockerfile.migrations .
docker run --rm \
-e POSTGRES_HOST=${{ secrets.STAGING_POSTGRES_HOST }} \
-e POSTGRES_PORT=${{ secrets.STAGING_POSTGRES_PORT }} \
-e POSTGRES_USERNAME=${{ secrets.STAGING_POSTGRES_USERNAME }} \
-e POSTGRES_DATABASE=${{ secrets.STAGING_POSTGRES_DATABASE }} \
-e POSTGRES_PASSWORD=${{ secrets.STAGING_POSTGRES_PASSWORD }} \
-e DATABASE__HOST=${{ secrets.STAGING_POSTGRES_HOST }} \
-e DATABASE__PORT=${{ secrets.STAGING_POSTGRES_PORT }} \
-e DATABASE__USERNAME=${{ secrets.STAGING_POSTGRES_USERNAME }} \
-e DATABASE__NAME=${{ secrets.STAGING_POSTGRES_DATABASE }} \
-e DATABASE__PASSWORD=${{ secrets.STAGING_POSTGRES_PASSWORD }} \
--network host \
tweteroo-migrations
Expand Down
10 changes: 5 additions & 5 deletions docker-compose.development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ services:
dockerfile: Dockerfile.development
container_name: tweteroo-csharp
environment:
- DATABASE_HOST=localhost
- DATABASE_PORT=5432
- DATABASE_USER=postgres
- DATABASE_PASSWORD=postgres
- DATABASE_NAME=stone_dev
- DATABASE__HOST=localhost
- DATABASE__PORT=5432
- DATABASE__USERNAME=postgres
- DATABASE__PASSWORD=postgres
- DATABASE__NAME=stone_dev
network_mode: host
depends_on:
db:
Expand Down

0 comments on commit b63a2e3

Please sign in to comment.