Update .forgejo/workflows/CD.yml
All checks were successful
Continuous Deployment / deploy (push) Successful in 3s
All checks were successful
Continuous Deployment / deploy (push) Successful in 3s
This commit is contained in:
parent
3acd4fd82a
commit
c8daf2ac53
1 changed files with 2 additions and 19 deletions
|
@ -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
|
||||
|
|
Reference in a new issue