add runner

This commit is contained in:
Puechberty Arthur
2026-06-12 00:46:02 +02:00
parent 5e3bd52b6b
commit cd5a388928
7 changed files with 79 additions and 55 deletions
+27
View File
@@ -0,0 +1,27 @@
name: Deploy Docker
on:
push:
branches: ["main"]
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Deploy on server
run: |
set -e
echo "Go to app folder"
cd /opt/apps/clock
echo "Pull latest code"
git pull origin main
echo "Build & restart containers"
docker compose down || true
docker compose build
docker compose up -d
echo "Deploy finished"