Update .forgejo/workflows/CD.yml
All checks were successful
Continuous Deployment / deploy (push) Successful in 3s

This commit is contained in:
Matt Reeves 2024-06-09 04:51:41 +00:00
parent 3acd4fd82a
commit c8daf2ac53

View file

@ -22,23 +22,6 @@ jobs:
run: |
for folder in $(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | cut -d/ -f1 | sort | uniq)
do
case $folder in
arrs)
host="${{ secrets.ARRS_IP }}"
;;
ag_main)
host="${{ secrets.AGMAIN_IP }}"
;;
downloaders)
host="${{ secrets.DOWNLOADERS_IP }}"
;;
# Add cases for other folders/hosts
*)
echo "Unknown folder: $folder"
continue
;;
esac
echo "Deploying to $host for folder $folder"
ssh -o StrictHostKeyChecking=no mafyuh@$host "cd /Auto-Homelab/$folder && git pull && docker-compose up -d"
echo "Deploying to $folder"
./scripts/deploy.sh $folder
done