diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f7ab60d..d58e7aa 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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() diff --git a/redeploy-site.sh b/redeploy-site.sh index 7a64fa2..0d489a1 100644 --- a/redeploy-site.sh +++ b/redeploy-site.sh @@ -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 \ No newline at end of file +docker compose -f docker-compose.prod.yml up -d \ No newline at end of file