This commit is contained in:
parent
5b7462d929
commit
344912b77b
@ -11,14 +11,18 @@ jobs:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: docker:latest
|
||||
volumes:
|
||||
- /opt/apps/api-finance:/app
|
||||
steps:
|
||||
- name: Install git
|
||||
run: apk add --no-cache git
|
||||
|
||||
- name: Clone repository
|
||||
run: git clone --depth 1 https://git.ai-assistant-bot.xyz/root/finance-api.git .
|
||||
- name: Pull latest code
|
||||
run: |
|
||||
cd /app
|
||||
git pull origin main || git clone --depth 1 https://git.ai-assistant-bot.xyz/root/finance-api.git .
|
||||
|
||||
- name: Build & Deploy
|
||||
run: |
|
||||
docker compose -f docker-compose.server.yml build
|
||||
docker compose -f docker-compose.server.yml up -d
|
||||
cd /app
|
||||
docker compose -f docker-compose.server.yml up -d --build
|
||||
|
||||
Loading…
Reference in New Issue
Block a user