Skip to content

Commit

Permalink
Merge pull request #30 from SoftBananas/ci-cd
Browse files Browse the repository at this point in the history
fix: deploy
  • Loading branch information
ONEPANTSU authored Mar 5, 2024
2 parents 0c98655 + 79bd1e4 commit 8b85209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ jobs:
- name: SSH into server and deploy
run: |
echo "${{ secrets.ENV }}" > .env.prod
cat scripts/deploy.sh |
sshpass -p ${{ secrets.PASSWORD }} ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.USERNAME }}@${{ secrets.SERVER_HOST }} 'bash -s'
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
image: postgres:15
container_name: db_app
env_file:
- ${{ secrets.ENV }}
- .env.prod
command: -p 5432
expose:
- 5432
Expand All @@ -17,7 +17,7 @@ services:
image: onepantsu/teamapp:latest
container_name: fastapi_app
env_file:
- ${{ secrets.ENV }}
- .env.prod
command: ["/teamapp/docker/start_app.sh"]
ports:
- "19888:8000"
Expand Down

0 comments on commit 8b85209

Please sign in to comment.