From fab50f9ca7c10310ee6f4b4f033339ae02304459 Mon Sep 17 00:00:00 2001 From: Mike McFetridge <91107715+mmcfetridge1969@users.noreply.github.com> Date: Mon, 20 Jul 2026 09:30:43 -0400 Subject: [PATCH] . --- .gitea/workflows/00-deploy-template.yml | 34 +++++++++++++++++++++++++ .gitea/workflows/deploy-watchtower.yml | 34 +++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .gitea/workflows/00-deploy-template.yml create mode 100644 .gitea/workflows/deploy-watchtower.yml diff --git a/.gitea/workflows/00-deploy-template.yml b/.gitea/workflows/00-deploy-template.yml new file mode 100644 index 0000000..655611f --- /dev/null +++ b/.gitea/workflows/00-deploy-template.yml @@ -0,0 +1,34 @@ +name: Deploy ArrStack + +on: + push: + branches: + - main + paths: + - 'ArrStack/**' # <-- CRITICAL: Only triggers if files in the watchtower folder change + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Sync ArrStack to Host + uses: appleboy/scp-action@master + with: + host: "192.168.2.8" + username: "miker" + key: ${{ secrets.SSH_PRIVATE_KEY }} + source: "ArrStack/" + target: "/opt/Docker-Deployments" + + - name: Deploy ArrStack Stack + uses: appleboy/ssh-action@master + with: + host: "192.168.2.8" + username: "miker" + key: ${{ secrets.SSH_PRIVATE_KEY }} + script: | + cd /opt/Docker-Deployments/ArrStack + docker compose up -d --remove-orphans \ No newline at end of file diff --git a/.gitea/workflows/deploy-watchtower.yml b/.gitea/workflows/deploy-watchtower.yml new file mode 100644 index 0000000..e8b5780 --- /dev/null +++ b/.gitea/workflows/deploy-watchtower.yml @@ -0,0 +1,34 @@ +name: Deploy Watchtower + +on: + push: + branches: + - main + paths: + - 'Watchtower/**' # <-- CRITICAL: Only triggers if files in the watchtower folder change + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Sync Watchtower to Host + uses: appleboy/scp-action@master + with: + host: "192.168.2.14" + username: "miker" + key: ${{ secrets.SSH_PRIVATE_KEY }} + source: "Watchtower/" + target: "/opt/Docker-Deployments" + + - name: Deploy Watchtower Stack + uses: appleboy/ssh-action@master + with: + host: "192.168.2.14" + username: "miker" + key: ${{ secrets.SSH_PRIVATE_KEY }} + script: | + cd /opt/Docker-Deployments/Watchtower + docker compose up -d --remove-orphans