ci: rewrite deploy workflow — docker compose build instead of binary copy

This commit is contained in:
2026-06-13 04:54:44 +05:00
parent d9a4a579b7
commit 258199bf0a
+20
View File
@@ -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