Switch to piggybacking deployment on host-specific startup script
This commit is contained in:
parent
612e689b80
commit
3f177f292e
@ -37,12 +37,20 @@ jobs:
|
|||||||
username: ${{ vars.SSH_USERNAME_FIGHTER }}
|
username: ${{ vars.SSH_USERNAME_FIGHTER }}
|
||||||
key: ${{ secrets.SSH_KEY_DEPLOY_TO_FIGHTER }}
|
key: ${{ secrets.SSH_KEY_DEPLOY_TO_FIGHTER }}
|
||||||
script: |
|
script: |
|
||||||
for stack in /home/$USER/homelab/fighter/config/*
|
chmod +x /home/admin/homelab/fighter/scripts/startup.sh
|
||||||
do cd $stack &&
|
/home/admin/homelab/fighter/scripts/startup.sh
|
||||||
echo "===== Deploying $(basename $PWD) =====" &&
|
# - name: Deploy new config (DEPRECATED)
|
||||||
docker compose up -d
|
# uses: appleboy/ssh-action@master
|
||||||
done
|
# with:
|
||||||
|
# host: ${{ vars.SSH_HOST_IP_FIGHTER }} # this is a LAN IP
|
||||||
|
# username: ${{ vars.SSH_USERNAME_FIGHTER }}
|
||||||
|
# key: ${{ secrets.SSH_KEY_DEPLOY_TO_FIGHTER }}
|
||||||
|
# script: |
|
||||||
|
# for stack in /home/$USER/homelab/fighter/config/*
|
||||||
|
# do cd $stack &&
|
||||||
|
# echo "===== Deploying $(basename $PWD) =====" &&
|
||||||
|
# docker compose up -d
|
||||||
|
# done
|
||||||
Notify:
|
Notify:
|
||||||
runs-on: fighter
|
runs-on: fighter
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
Reference in New Issue
Block a user