From 571f2f0967d3930e6c5d39e5f9425fa2e4203a3b Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 17:51:16 +0200 Subject: [PATCH 01/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index c42e575..3cf32a3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -147,17 +147,17 @@ steps: image: mcr.microsoft.com/dotnet/sdk:8.0 DB_SERVER: "WhatTheFantasy-wtf-api" DB_NAME: - from_secret: POSTGRES_DB_AUTH + from_secret: POSTGRES_DB_API USER_ID: - from_secret: POSTGRES_USER_AUTH + from_secret: POSTGRES_USER_API PASSWORD: - from_secret: POSTGRES_PASSWORD_AUTH - DB_PATH_AUTH: "WhatTheFantasy-wtf-api-auth" + from_secret: POSTGRES_PASSWORD_API + #DB_PATH_AUTH: "WhatTheFantasy-wtf-api-auth" commands: - cd WF_EF_Api/StubbedContextLib - dotnet tool install --global dotnet-ef - export PATH="$PATH:/root/.dotnet/tools" - - dotnet ef database update --connection "Data Source=DB_PATH_AUTH;" + - dotnet ef database update --connection "Host=$${DB_SERVER};Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] - name: publish-to-registry From 0c62d8ed3bdcdc5d9640e8247cfb6616934d898a Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 17:53:01 +0200 Subject: [PATCH 02/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3cf32a3..0e2a4b8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -157,7 +157,7 @@ steps: - cd WF_EF_Api/StubbedContextLib - dotnet tool install --global dotnet-ef - export PATH="$PATH:/root/.dotnet/tools" - - dotnet ef database update --connection "Host=$${DB_SERVER};Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" + - dotnet ef database update --connection "Host=WhatTheFantasy-wtf-api;Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] - name: publish-to-registry From 552e18702c4c652eaade7d59e394936e557d1298 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 17:56:11 +0200 Subject: [PATCH 03/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 0e2a4b8..2e303aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -143,6 +143,7 @@ steps: CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB: "wtf-test" ADMINS: kentinbrongniart,lenibeaulaton,kevinmondejar,louisguichard-montguers,maximerocher,tommynguyen2 + - name: update-database image: mcr.microsoft.com/dotnet/sdk:8.0 DB_SERVER: "WhatTheFantasy-wtf-api" From 5634943a6dca33b92c53ba73f7448eae1bc15221 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 17:58:00 +0200 Subject: [PATCH 04/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 2e303aa..af7c9e4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -158,7 +158,7 @@ steps: - cd WF_EF_Api/StubbedContextLib - dotnet tool install --global dotnet-ef - export PATH="$PATH:/root/.dotnet/tools" - - dotnet ef database update --connection "Host=WhatTheFantasy-wtf-api;Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" + - dotnet ef database update --connection "Host=https://codefirst.iut.uca.fr/containers/WhatTheFantasy-wtf-api;Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] - name: publish-to-registry From 6d8db552c71e11e4dd065d3132f0f77bc898af28 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 18:01:34 +0200 Subject: [PATCH 05/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index af7c9e4..e082dac 100644 --- a/.drone.yml +++ b/.drone.yml @@ -146,7 +146,7 @@ steps: - name: update-database image: mcr.microsoft.com/dotnet/sdk:8.0 - DB_SERVER: "WhatTheFantasy-wtf-api" + DB_SERVER: "https://codefirst.iut.uca.fr/containers/WhatTheFantasy-wtf-api" DB_NAME: from_secret: POSTGRES_DB_API USER_ID: @@ -158,7 +158,7 @@ steps: - cd WF_EF_Api/StubbedContextLib - dotnet tool install --global dotnet-ef - export PATH="$PATH:/root/.dotnet/tools" - - dotnet ef database update --connection "Host=https://codefirst.iut.uca.fr/containers/WhatTheFantasy-wtf-api;Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" + - dotnet ef database update --connection "Host=$${DB_SERVER};Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] - name: publish-to-registry From 8f6099019446b103162d72df911022e049e90392 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 18:04:49 +0200 Subject: [PATCH 06/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index e082dac..b60e8b6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -146,7 +146,7 @@ steps: - name: update-database image: mcr.microsoft.com/dotnet/sdk:8.0 - DB_SERVER: "https://codefirst.iut.uca.fr/containers/WhatTheFantasy-wtf-api" + DB_SERVER: "codefirst.iut.uca.fr/containers/WhatTheFantasy-wtf-api" DB_NAME: from_secret: POSTGRES_DB_API USER_ID: From b695a0c3a9ed1fba1ed600e8ed7ac41d82650c52 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 18:06:28 +0200 Subject: [PATCH 07/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b60e8b6..6c76159 100644 --- a/.drone.yml +++ b/.drone.yml @@ -146,7 +146,7 @@ steps: - name: update-database image: mcr.microsoft.com/dotnet/sdk:8.0 - DB_SERVER: "codefirst.iut.uca.fr/containers/WhatTheFantasy-wtf-api" + DB_SERVER: "codefirst.iut.uca.fr" DB_NAME: from_secret: POSTGRES_DB_API USER_ID: From 42b791d630739f0ebde98e40ed9871de9d1fe2a8 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 18:07:38 +0200 Subject: [PATCH 08/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 6c76159..a67b594 100644 --- a/.drone.yml +++ b/.drone.yml @@ -146,7 +146,7 @@ steps: - name: update-database image: mcr.microsoft.com/dotnet/sdk:8.0 - DB_SERVER: "codefirst.iut.uca.fr" + DB_SERVER: "WhatTheFantasy-wtf-api" DB_NAME: from_secret: POSTGRES_DB_API USER_ID: From 738880a0559a48743e2e033d0cfa47043330cbd5 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 18:08:39 +0200 Subject: [PATCH 09/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a67b594..2e303aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -158,7 +158,7 @@ steps: - cd WF_EF_Api/StubbedContextLib - dotnet tool install --global dotnet-ef - export PATH="$PATH:/root/.dotnet/tools" - - dotnet ef database update --connection "Host=$${DB_SERVER};Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" + - dotnet ef database update --connection "Host=WhatTheFantasy-wtf-api;Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] - name: publish-to-registry From 7660456667fd4ce478de56eff30cc28c6fe29e2c Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 18:09:42 +0200 Subject: [PATCH 10/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 2e303aa..fb7811a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -158,7 +158,7 @@ steps: - cd WF_EF_Api/StubbedContextLib - dotnet tool install --global dotnet-ef - export PATH="$PATH:/root/.dotnet/tools" - - dotnet ef database update --connection "Host=WhatTheFantasy-wtf-api;Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" + - dotnet ef database update --connection "Host=codefirst.iut.uca.fr;Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] - name: publish-to-registry From 1f6dfeefc474072cc0040c1082af7fe186075db8 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 18:15:00 +0200 Subject: [PATCH 11/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index fb7811a..814da10 100644 --- a/.drone.yml +++ b/.drone.yml @@ -146,19 +146,12 @@ steps: - name: update-database image: mcr.microsoft.com/dotnet/sdk:8.0 - DB_SERVER: "WhatTheFantasy-wtf-api" - DB_NAME: - from_secret: POSTGRES_DB_API - USER_ID: - from_secret: POSTGRES_USER_API - PASSWORD: - from_secret: POSTGRES_PASSWORD_API #DB_PATH_AUTH: "WhatTheFantasy-wtf-api-auth" commands: - cd WF_EF_Api/StubbedContextLib - dotnet tool install --global dotnet-ef - export PATH="$PATH:/root/.dotnet/tools" - - dotnet ef database update --connection "Host=codefirst.iut.uca.fr;Database=$${DB_NAME};Username=$${DB_USER};Password=$${DB_PASSWORD};" + - dotnet ef database update --connection "Host=WhatTheFantasy-wtf-api-test;Database=wtf-test;Username=test;Password=test;" depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] - name: publish-to-registry From 515356405475b688631c6446f3ac9426bda8ae95 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 18:17:25 +0200 Subject: [PATCH 12/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 814da10..d59912b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -147,11 +147,16 @@ steps: - name: update-database image: mcr.microsoft.com/dotnet/sdk:8.0 #DB_PATH_AUTH: "WhatTheFantasy-wtf-api-auth" + environment: + HOST: "WhatTheFantasy-wtf-api-test" + PASSWORD: "test" + USER: "test" + DB: "wtf-test" commands: - cd WF_EF_Api/StubbedContextLib - dotnet tool install --global dotnet-ef - export PATH="$PATH:/root/.dotnet/tools" - - dotnet ef database update --connection "Host=WhatTheFantasy-wtf-api-test;Database=wtf-test;Username=test;Password=test;" + - dotnet ef database update --connection "Host=${{HOST}};Database=${{DB}};Username=${{USER}};Password=${{PASSWORD}};" depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] - name: publish-to-registry From 326141ebea1e07c9fbcfa48fcb6ad656f227e9fd Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Thu, 3 Apr 2025 18:18:16 +0200 Subject: [PATCH 13/13] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d59912b..a7f59bb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -156,7 +156,7 @@ steps: - cd WF_EF_Api/StubbedContextLib - dotnet tool install --global dotnet-ef - export PATH="$PATH:/root/.dotnet/tools" - - dotnet ef database update --connection "Host=${{HOST}};Database=${{DB}};Username=${{USER}};Password=${{PASSWORD}};" + - dotnet ef database update --connection "Host=$${HOST};Database=$${DB};Username=$${USER};Password=$${PASSWORD};" depends_on: [deploy-api-db,deploy-auth-db,deploy-test-db] - name: publish-to-registry