Skip to content

Commit

Permalink
Print docker status from script instead
Browse files Browse the repository at this point in the history
  • Loading branch information
kumankai committed Aug 8, 2024
1 parent f695600 commit f304244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ jobs:
run: ssh my-vps '~/redeploy-site.sh'

- name: "Deployment Successful"
run: |
cd ~/
docker-compose ps
curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🚀 Deployment Successful"
run: curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🚀 Deployment Successful"

- name: "Deployment Failed"
if: failure()
Expand Down
3 changes: 2 additions & 1 deletion redeploy-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ cd jacob-mlh
git fetch && git reset origin/main --hard
docker compose -f docker-compose.prod.yml down
docker rmi jacob-mlh-myportfolio:latest
docker compose -f docker-compose.prod.yml up -d
docker compose -f docker-compose.prod.yml up -d
docker compose ps

0 comments on commit f304244

Please sign in to comment.