chore: add CI/CD
This commit is contained in:
parent
ca0afc6662
commit
c09817faac
24
.gitea/deploy.yml
Normal file
24
.gitea/deploy.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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/portfolio.git .
|
||||||
|
|
||||||
|
- name: Build & Deploy
|
||||||
|
run: |
|
||||||
|
docker compose -f docker-compose.server.yml build
|
||||||
|
docker compose -f docker-compose.server.yml up -d
|
||||||
Loading…
Reference in New Issue
Block a user