chore: initial import of CoHaiSe Cloud
PR — Ouverture automatique / create-pr (push) Failing after 1s
PR — Ouverture automatique / create-pr (push) Failing after 1s
Standalone files & media application: React/Vite frontend with the @cohaise/ui design system, Hono + MariaDB backend, nginx reverse proxy, Docker Compose stack, migrations 000-006, and project docs. Adds Gitea Actions workflows for deployment, automatic pull requests, and Renovate dependency updates.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
name: CD — Déploiement
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "backend/**"
|
||||
- "frontend/**"
|
||||
- "docker/**"
|
||||
- "docker-compose.yml"
|
||||
- "Makefile"
|
||||
- ".github/workflows/deploy.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: deploy-cloud
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Récupérer puis reconstruire
|
||||
env:
|
||||
# Chemin du dépôt sur le serveur. Défini via le secret DEPLOY_DIR si
|
||||
# besoin ; sinon la valeur par défaut ci-dessous est utilisée.
|
||||
DEPLOY_DIR: ${{ secrets.DEPLOY_DIR }}
|
||||
run: |
|
||||
set -eu
|
||||
dir="${DEPLOY_DIR:-/srv/apps/cohaise-cloud/CoHaiSe-CLOUD}"
|
||||
cd "$dir"
|
||||
git pull --ff-only origin main
|
||||
make check
|
||||
make front
|
||||
docker compose build api nginx
|
||||
docker compose up -d api nginx
|
||||
docker image prune -f
|
||||
Reference in New Issue
Block a user