refactor(ci): migrate deployment from Windows to Linux container
All checks were successful
Deploy to Caddy / deploy (push) Successful in 6s
All checks were successful
Deploy to Caddy / deploy (push) Successful in 6s
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.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user