diff --git a/.gitea/workflows/deploy-to-fighter.yml b/.gitea/workflows/deploy-to-fighter.yml index b0bb6fc..a343887 100644 --- a/.gitea/workflows/deploy-to-fighter.yml +++ b/.gitea/workflows/deploy-to-fighter.yml @@ -37,12 +37,20 @@ jobs: 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 - + chmod +x /home/admin/homelab/fighter/scripts/startup.sh + /home/admin/homelab/fighter/scripts/startup.sh + # - name: Deploy new config (DEPRECATED) + # uses: appleboy/ssh-action@master + # 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: runs-on: fighter steps: