ci: rewrite deploy workflow — docker compose build instead of binary copy
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user