25 lines
523 B
YAML
25 lines
523 B
YAML
name: Deploy Production
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: docker
|
|
container:
|
|
image: docker:latest
|
|
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: Build & Deploy
|
|
run: |
|
|
docker compose -f docker-compose.server.yml build
|
|
docker compose -f docker-compose.server.yml up -d
|