From 4035147092185ee4ed00df8ec15c1451c1684d67 Mon Sep 17 00:00:00 2001 From: "m.curnillon" Date: Wed, 1 Apr 2026 12:58:52 +0200 Subject: [PATCH 1/7] Ajouter .gitea/workflows/deploy-prod.yaml --- .gitea/workflows/deploy-prod.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/deploy-prod.yaml diff --git a/.gitea/workflows/deploy-prod.yaml b/.gitea/workflows/deploy-prod.yaml new file mode 100644 index 0000000..aacad92 --- /dev/null +++ b/.gitea/workflows/deploy-prod.yaml @@ -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é !" \ No newline at end of file From cc110b02a3cd1793563f9bd25dc537e2923606cf Mon Sep 17 00:00:00 2001 From: "m.curnillon" Date: Wed, 1 Apr 2026 13:02:06 +0200 Subject: [PATCH 2/7] Actualiser .gitea/workflows/deploy-prod.yaml --- .gitea/workflows/deploy-prod.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-prod.yaml b/.gitea/workflows/deploy-prod.yaml index aacad92..091b75c 100644 --- a/.gitea/workflows/deploy-prod.yaml +++ b/.gitea/workflows/deploy-prod.yaml @@ -1,9 +1,7 @@ name: Deploiement API Prod Docker on: - push: - branches: - - main + [push] workflow_dispatch: jobs: From be9032e8887b642b3826c856152a0979e0f3b157 Mon Sep 17 00:00:00 2001 From: "m.curnillon" Date: Wed, 1 Apr 2026 13:02:35 +0200 Subject: [PATCH 3/7] Actualiser .gitea/workflows/deploy-prod.yaml --- .gitea/workflows/deploy-prod.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-prod.yaml b/.gitea/workflows/deploy-prod.yaml index 091b75c..3fe53de 100644 --- a/.gitea/workflows/deploy-prod.yaml +++ b/.gitea/workflows/deploy-prod.yaml @@ -1,8 +1,6 @@ name: Deploiement API Prod Docker -on: - [push] - workflow_dispatch: +on: [push] jobs: deploy: From f5388a31fbed8d3654673ba2c97e3f359677ad20 Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Wed, 1 Apr 2026 13:15:46 +0200 Subject: [PATCH 4/7] =?UTF-8?q?fix:=20supprimer=20les=20sp=C3=A9cification?= =?UTF-8?q?s=20dockerfile=20inutiles=20dans=20compose.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compose.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compose.yaml b/compose.yaml index 979fbd6..4737c6e 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,6 +2,4 @@ webzine.webapplication: image: webzine.webapplication build: - context: . - dockerfile: Webzine.WebApplication/Dockerfile - + context: . \ No newline at end of file From 609c2518ecf03d7d67609d588f6a0412abb93e27 Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Wed, 1 Apr 2026 13:26:14 +0200 Subject: [PATCH 5/7] feat: ajouter la configuration des ports pour le service web dans compose.yaml --- compose.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 4737c6e..5673343 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,4 +2,6 @@ webzine.webapplication: image: webzine.webapplication build: - context: . \ No newline at end of file + context: . + ports: + - "8080:8080" \ No newline at end of file From b924393048980f3b9e9594daed4990abf976fa0a Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Wed, 1 Apr 2026 13:35:40 +0200 Subject: [PATCH 6/7] feat: ajout l'injection des variables d'environnement et la configuration des connexions dans compose.yaml --- .gitea/workflows/deploy-prod.yaml | 6 +++++- compose.yaml | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-prod.yaml b/.gitea/workflows/deploy-prod.yaml index 3fe53de..839ddce 100644 --- a/.gitea/workflows/deploy-prod.yaml +++ b/.gitea/workflows/deploy-prod.yaml @@ -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..." diff --git a/compose.yaml b/compose.yaml index 5673343..dd0bc07 100644 --- a/compose.yaml +++ b/compose.yaml @@ -4,4 +4,6 @@ build: context: . ports: - - "8080:8080" \ No newline at end of file + - "8080:8080" + environment: + - ConnectionStrings__PostGreSQLConnection=${PGSQL_CONNECTION} \ No newline at end of file From 7c73095f89f07ad2ba1d2b375682757c92033b2f Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Wed, 1 Apr 2026 13:56:04 +0200 Subject: [PATCH 7/7] =?UTF-8?q?feat:=20mettre=20=C3=A0=20jour=20la=20confi?= =?UTF-8?q?guration=20de=20d=C3=A9ploiement=20pour=20d=C3=A9clencher=20sur?= =?UTF-8?q?=20la=20branche=20principale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy-prod.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-prod.yaml b/.gitea/workflows/deploy-prod.yaml index 839ddce..b2a359a 100644 --- a/.gitea/workflows/deploy-prod.yaml +++ b/.gitea/workflows/deploy-prod.yaml @@ -1,6 +1,9 @@ name: Deploiement API Prod Docker -on: [push] +on: + push: + branches: + - main jobs: deploy: