Compare commits
2
Commits
1734208f9c
...
1dc049359a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1dc049359a | ||
|
|
fab50f9ca7 |
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user