Skip to content

Commit

Permalink
Remove env var and replace with secret
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottminns committed Nov 12, 2024
1 parent d8ef610 commit 0274cfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,3 @@ jobs:
export DB_PASSWORD=${{ secrets.DB_PASSWORD }}
export DOCKER_HOST=ssh://[email protected]
docker-compose -f ./compose.prod.yaml up -d
# - name: Copy over the docker compose file
# run: |
# scp -o StrictHostKeyChecking=no compose.prod.yaml [email protected]:guestbook/compose.yaml
# - name: Deploy code via SSH
# run: |
# ssh -o StrictHostKeyChecking=no [email protected] "cd guestbook && docker compose up -d"
4 changes: 2 additions & 2 deletions compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ services:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=guestbook
#- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
#- POSTGRES_PASSWORD=${DB_PASSWORD}
expose:
- 5432
healthcheck:
Expand Down

0 comments on commit 0274cfe

Please sign in to comment.