Files
Docker-01/.gitea/workflows/deploy-Semaphore.yml
T
2026-07-20 11:08:52 -04:00

36 lines
845 B
YAML

name: Deploy Semaphore
on:
push:
branches:
- main
paths:
- 'Semaphore/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Sync Semaphore to Host
uses: appleboy/scp-action@master
with:
host: "192.168.2.13"
username: "miker"
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "Semaphore/*"
target: "/opt/Docker-Deployments/Semaphore"
strip_components: 1
- name: Deploy Semaphore Stack
uses: appleboy/ssh-action@master
with:
host: "192.168.2.13"
username: "miker"
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /opt/Docker-Deployments/Semaphore
docker compose up -d --remove-orphans