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