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