feat: ajout l'injection des variables d'environnement et la configuration des connexions dans compose.yaml
This commit is contained in:
@@ -5,12 +5,16 @@ on: [push]
|
||||
jobs:
|
||||
deploy:
|
||||
name: Build et Déploiement
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: 📥 Récupération du code source
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 🔐 Injection des variables d'environnement
|
||||
run: |
|
||||
echo "PGSQL_CONNECTION=${{ secrets.PGSQL_CONNECTION }}" > .env
|
||||
|
||||
- name: 🐳 Redémarrage Docker
|
||||
run: |
|
||||
echo "🚀 Démarrage du déploiement Docker sur api-prod..."
|
||||
|
||||
@@ -4,4 +4,6 @@
|
||||
build:
|
||||
context: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- ConnectionStrings__PostGreSQLConnection=${PGSQL_CONNECTION}
|
||||
Reference in New Issue
Block a user