From 9c247189a2f7dffd3869fc5bf0c6c186387d64b6 Mon Sep 17 00:00:00 2001 From: moonstar-x Date: Fri, 6 Dec 2024 11:32:53 -0500 Subject: [PATCH] Updated CI workflow. --- .github/workflows/callable-deploy.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/callable-deploy.yml b/.github/workflows/callable-deploy.yml index c78fd8a..4c5c106 100644 --- a/.github/workflows/callable-deploy.yml +++ b/.github/workflows/callable-deploy.yml @@ -15,5 +15,14 @@ jobs: runs-on: ubuntu-latest steps: - - name: Placeholder - run: echo "DEPLOY" + - name: Update Deployment + uses: appleboy/ssh-action@v1.2.0 + with: + host: ${{ secrets.DEPLOYMENT_SSH_HOST }} + port: ${{ secrets.DEPLOYMENT_SSH_PORT }} + key: ${{ secrets.DEPLOYMENT_SSH_PRIVATE_KEY }} + script: | + cd ~/services/starpep-web/ + docker compose rm -fs + docker compose pull + docker compose up -d