From 258199bf0a4101c4fb612d19054cd5a3b5877c62 Mon Sep 17 00:00:00 2001 From: valitovgaziz Date: Sat, 13 Jun 2026 04:54:44 +0500 Subject: [PATCH] =?UTF-8?q?ci:=20rewrite=20deploy=20workflow=20=E2=80=94?= =?UTF-8?q?=20docker=20compose=20build=20instead=20of=20binary=20copy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..4558cb6 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Deploy api_yal +on: + push: + branches: + - main + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Pull latest main + run: | + cd /home/gaziz/artefacts/tp + git pull origin main + + - name: Rebuild api_yal and redeploy + run: | + cd /home/gaziz/artefacts/tp/main_dc + docker compose build api_yal --no-cache + docker compose up api_yal -d