Skip to content

Commit

Permalink
Setup docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
kumankai committed Aug 8, 2024
1 parent f304244 commit b78e8fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ jobs:
- name: Deploy site
run: ssh my-vps '~/redeploy-site.sh'

- name: Set up Docker
uses: docker/setup-buildx-action@v2

- name: "Deployment Successful"
run: curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🚀 Deployment Successful"
run: |
docker-compose ps
curl -s -X POST "${{ secrets.DISCORD_WEBHOOK }}" -d "content=🚀 Deployment Successful"
- name: "Deployment Failed"
if: failure()
Expand Down
3 changes: 1 addition & 2 deletions redeploy-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ 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 ps
docker compose -f docker-compose.prod.yml up -d

0 comments on commit b78e8fc

Please sign in to comment.