From fd7a905d3aa66383bf3bbf9221cd3a1918fbc7a1 Mon Sep 17 00:00:00 2001 From: Puechberty Arthur Date: Wed, 10 Jun 2026 22:27:27 +0200 Subject: [PATCH] fix runner --- .github/workflows/deploy.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0b72aed..a562b5c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,12 +9,19 @@ jobs: runs-on: self-hosted steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Build & restart containers + - name: Deploy on server run: | + set -e + + echo "Go to app folder" + cd /opt/apps/visio + + echo "⬇Pull latest code" + git pull origin main + + echo "Build & restart containers" docker compose down || true docker compose build docker compose up -d - \ No newline at end of file + + echo "Deploy finished" \ No newline at end of file