From af3cac026a3186589a6b376c5f2c36882d859f0e Mon Sep 17 00:00:00 2001 From: logikonline Date: Mon, 9 Feb 2026 04:17:14 -0500 Subject: [PATCH] refactor(ci): migrate deployment from Windows to Linux container Replaces Windows runner deployment (copying to C:\sites) with Linux deployment via SSH to container 103. Uses direct SSH/SCP to deploy docs folder to /var/www/sites/mutual-flourishing.org on CT 103 via internal network (10.0.0.103). Clears target directory before deployment and uses pre-configured deploy key at /root/.ssh/deploy_key. --- .gitea/workflows/deploy.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 84ffd15..625ef2c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy to Website +name: Deploy to Caddy on: push: @@ -6,16 +6,13 @@ on: jobs: deploy: - name: Deploy Pages - runs-on: windows + runs-on: linux-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Deploy docs to site directory + - name: Deploy to CT 103 run: | - $source = Join-Path (Get-Location) "docs" - $dest = "C:\sites\mutual-flourishing" - if (Test-Path $dest) { Remove-Item -Recurse -Force $dest } - Copy-Item -Path $source -Destination $dest -Recurse - Write-Host "Deployed docs folder to $dest" + # Deploy directly to CT 103 via internal network + ssh -i /root/.ssh/deploy_key root@10.0.0.103 "rm -rf /var/www/sites/mutual-flourishing.org/* && mkdir -p /var/www/sites/mutual-flourishing.org" + scp -i /root/.ssh/deploy_key -r docs/* root@10.0.0.103:/var/www/sites/mutual-flourishing.org/ + echo "Deployed to mutual-flourishing.org"