From 9305b62e2a9e8ae198f328e4b0f512733457b203 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Thu, 26 Jun 2025 00:08:08 +0200 Subject: [PATCH] ci: move to ssh connection and stuff --- .github/workflows/docker.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d0b7286..b850d3a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -116,10 +116,17 @@ jobs: runs-on: ubuntu-latest needs: [frontend, db, chat] steps: - - name: Emit a webhook to the server - env: - AUTH_HEADER: ${{ secrets.WHSERVER_TOKEN }} - run: | - curl -X POST \ - -H "Authorization: $AUTH_HEADER" \ - https://webhooks.srizan.dev/hooks/hctv \ No newline at end of file + # source https://github.com/taciturnaxolotl/cachet/blob/main/.github/workflows/deploy.yaml + - name: Deploy with Docker + uses: appleboy/ssh-action@v1 + with: + host: hackclub.app + username: srizan + key: ${{ secrets.SSH_KEY }} + port: 22 + script: | + cd ~/compose/hctv + docker compose pull + docker compose up -d --remove-orphans + # for some reason, without the restart, the rtmp container stops working + docker compose restart \ No newline at end of file