From 56c54c973f056878963632f5bc750e297aa0c18f Mon Sep 17 00:00:00 2001 From: woutervermeer Date: Sun, 8 Mar 2026 14:13:48 +0000 Subject: [PATCH 1/3] Update .gitea/workflows/build_test.yaml --- .gitea/workflows/build_test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build_test.yaml b/.gitea/workflows/build_test.yaml index 5ce7356..4233359 100644 --- a/.gitea/workflows/build_test.yaml +++ b/.gitea/workflows/build_test.yaml @@ -8,7 +8,7 @@ on: pull_request: jobs: - docker: + tests: runs-on: ubuntu-latest steps: From f293a349234d91aa39f29af3dd9036502d716c3c Mon Sep 17 00:00:00 2001 From: woutervermeer Date: Sun, 8 Mar 2026 14:14:34 +0000 Subject: [PATCH 2/3] Add .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..f14376c --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,36 @@ +name: Deploy to production +run-name: deploy-${{ gitea.actor }} + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + needs: tests # require tests to pass + + steps: + - uses: actions/checkout@v3 + + - name: Setup SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts + + - name: Deploy + run: | + ssh -i ~/.ssh/id_rsa ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'EOF' + cd /path/to/Quatsh-Website + + echo "Pulling latest code..." + git pull origin main + + echo "Building containers..." + make prod + + echo "Deployment complete." + EOF \ No newline at end of file From 5b9d70db223ec866277216925bda7a5cd1732f61 Mon Sep 17 00:00:00 2001 From: woutervermeer Date: Sun, 8 Mar 2026 14:17:19 +0000 Subject: [PATCH 3/3] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f14376c..dfebd0a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy to production run-name: deploy-${{ gitea.actor }} on: - push: + merge: branches: - main