This commit is contained in:
parent
754267e6ce
commit
5aba4137c3
@ -11,18 +11,14 @@ 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: Pull latest code
|
- name: Clone repository
|
||||||
run: |
|
run: git clone --depth 1 https://git.ai-assistant-bot.xyz/root/finance-api.git .
|
||||||
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: |
|
||||||
cd /app
|
docker compose -f docker-compose.server.yml build
|
||||||
docker compose -f docker-compose.server.yml up -d --build
|
docker compose -f docker-compose.server.yml up -d
|
||||||
|
|||||||
@ -33,9 +33,6 @@ services:
|
|||||||
- traefik.http.routers.api-finance.tls.certresolver=le
|
- traefik.http.routers.api-finance.tls.certresolver=le
|
||||||
- traefik.http.services.api-finance.loadbalancer.server.port=3000
|
- traefik.http.services.api-finance.loadbalancer.server.port=3000
|
||||||
|
|
||||||
volumes:
|
|
||||||
postgres_data:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user