add runner

This commit is contained in:
Puechberty Arthur
2026-06-11 13:53:27 +02:00
parent 7c22c4f22e
commit 4dbc7c2960
7 changed files with 66 additions and 48 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/contact
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"