ci: fix deploy workflow - dùng host mode trực tiếp
This commit is contained in:
@@ -7,12 +7,14 @@ jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and Deploy
|
||||
- name: Pull latest code
|
||||
run: |
|
||||
apk add --no-cache git docker-cli docker-cli-compose
|
||||
cd /opt/data/trading-portal
|
||||
git pull origin master
|
||||
|
||||
- name: Build and deploy
|
||||
run: |
|
||||
cd /opt/data/trading-portal
|
||||
docker compose build backend-api backend-scheduler frontend
|
||||
docker compose up -d backend-api backend-scheduler frontend
|
||||
|
||||
Reference in New Issue
Block a user