From 1361269e33498e72a3d32ccbed07fd95ab94fb61 Mon Sep 17 00:00:00 2001 From: Puechberty Arthur Date: Thu, 11 Jun 2026 16:35:48 +0200 Subject: [PATCH] add runner --- .github/workflows/deploy.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..03cc2a4 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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/formcraft + + 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" \ No newline at end of file