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:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -6,16 +6,13 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy Pages
|
runs-on: linux-latest
|
||||||
runs-on: windows
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Deploy docs to site directory
|
- name: Deploy to CT 103
|
||||||
run: |
|
run: |
|
||||||
$source = Join-Path (Get-Location) "docs"
|
# Deploy directly to CT 103 via internal network
|
||||||
$dest = "C:\sites\mutual-flourishing"
|
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"
|
||||||
if (Test-Path $dest) { Remove-Item -Recurse -Force $dest }
|
scp -i /root/.ssh/deploy_key -r docs/* root@10.0.0.103:/var/www/sites/mutual-flourishing.org/
|
||||||
Copy-Item -Path $source -Destination $dest -Recurse
|
echo "Deployed to mutual-flourishing.org"
|
||||||
Write-Host "Deployed docs folder to $dest"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user