From 3052fed27941991f77e76e1a1ef1e1215b47f623 Mon Sep 17 00:00:00 2001 From: Grzegorz Kucmierz Date: Sun, 22 Feb 2026 16:33:13 +0000 Subject: [PATCH] Update deploy workflow: set working directory and simplify --- .gitea/workflows/deploy.yaml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 5cf065b..59118e7 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,23 +1,11 @@ -name: Deploy to Production -run-name: Deploy to Production by @${{ github.actor }} - -on: - push: - branches: - - main - jobs: deploy: runs-on: self-hosted steps: - - name: Check out repository code - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Build and deploy with Docker Compose + - name: Deploy n + working-directory: /home/gkucmierz/docker/nonograms-app run: | - # Próba zatrzymania i usunięcia starego kontenera (ignoruje błąd jeśli nie istnieje) docker compose down --remove-orphans || true - docker rm -f nonograms-app || true - - # Start nowej wersji - docker compose up -d --build + docker compose up -d --build \ No newline at end of file