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: | run: |
for folder in $(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | cut -d/ -f1 | sort | uniq) for folder in $(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} | cut -d/ -f1 | sort | uniq)
do do
case $folder in echo "Deploying to $folder"
arrs) ./scripts/deploy.sh $folder
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"
done done