Ajouter .gitea/workflows/deploy-prod.yaml
This commit is contained in:
23
.gitea/workflows/deploy-prod.yaml
Normal file
23
.gitea/workflows/deploy-prod.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Deploiement API Prod Docker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Build et Déploiement
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: 📥 Récupération du code source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 🐳 Redémarrage Docker
|
||||
run: |
|
||||
echo "🚀 Démarrage du déploiement Docker sur api-prod..."
|
||||
docker compose down
|
||||
docker compose up -d --build
|
||||
echo "✅ Déploiement terminé !"
|
||||
Reference in New Issue
Block a user