From b78e8fc664cb69b2a800f09b8f22535ef860cbc1 Mon Sep 17 00:00:00 2001 From: Jacob Angga Date: Thu, 8 Aug 2024 17:20:19 -0600 Subject: [PATCH] Setup docker-compose --- .github/workflows/deploy.yml | 7 ++++++- redeploy-site.sh | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) 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