diff --git a/.gitea/workflows/deploy-watchtower.yml b/.gitea/workflows/deploy-watchtower.yml index e8b5780..46ea689 100644 --- a/.gitea/workflows/deploy-watchtower.yml +++ b/.gitea/workflows/deploy-watchtower.yml @@ -5,7 +5,7 @@ on: branches: - main paths: - - 'Watchtower/**' # <-- CRITICAL: Only triggers if files in the watchtower folder change + - 'Watchtower/**' jobs: deploy: @@ -20,8 +20,9 @@ jobs: host: "192.168.2.14" username: "miker" key: ${{ secrets.SSH_PRIVATE_KEY }} - source: "Watchtower/" - target: "/opt/Docker-Deployments" + source: "Watchtower/*" + target: "/opt/Docker-Deployments/Watchtower" + strip_components: 1 - name: Deploy Watchtower Stack uses: appleboy/ssh-action@master