From b29dbec2ef107aa72f38b48f253328f07a409c2d Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 20 Jan 2026 12:02:14 +0100 Subject: [PATCH 01/21] je test un truc --- .github/workflows/CICDPipe.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CICDPipe.yml b/.github/workflows/CICDPipe.yml index 2273e60a..aa4b9842 100644 --- a/.github/workflows/CICDPipe.yml +++ b/.github/workflows/CICDPipe.yml @@ -22,10 +22,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Create artifact for frontend - uses: actions/upload-artifact@v3 - with: - name: frontend-artifact + steps: + - publish: ./frontend + artifact: FrontendArtifact + \ No newline at end of file From 09ecd94a6f447ab35e057981c4d364ab353fd5c1 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:03:06 +0100 Subject: [PATCH 02/21] creation de la pipiline cicd --- .github/workflows/deploy-infra-and-app-PR.yml | 9 ++++- .github/workflows/deploy-infra-and-apps.yml | 40 ++++++++++++++++++- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-infra-and-app-PR.yml b/.github/workflows/deploy-infra-and-app-PR.yml index f0b86ab1..e7d6ab7e 100644 --- a/.github/workflows/deploy-infra-and-app-PR.yml +++ b/.github/workflows/deploy-infra-and-app-PR.yml @@ -1,4 +1,4 @@ -on: [pull_request, workflow_dispatch] + jobs: build-reactapp-lint-frontend-job: @@ -34,4 +34,9 @@ jobs: run: dotnet build --configuration Release working-directory: ./backend - \ No newline at end of file + deploy_infrastructure: + runs-on: ubuntu-latest + needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job + environment: production + + diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 8e3fab60..501343d7 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -14,14 +14,47 @@ permissions: id-token: write - - + env: AZURE_RG_NAME: rg-${{ vars.PROJECT_NAME }}-${{ vars.AZURE_RESOURCE_IDENTIFIER }} jobs: + build-reactapp-lint-frontend-job: + runs-on: ubuntu-latest + environment: production + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build the react app - production mode + run: npm install && npm run build + working-directory: ./frontend + + - name: Run the linting script + run: npm run lint + working-directory: ./frontend + + build-dotnet-app-release-backend-job: + runs-on: ubuntu-latest + environment: production + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET SDK 9.0.x + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '9.0.x' + + - name: Build the dotnet app in release mode + run: dotnet build --configuration Release + working-directory: ./backend + deploy_infrastructure: runs-on: ubuntu-latest + needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job environment: production # bind the job to the production environment outputs: appServiceName: ${{ steps.bicep_deploy.outputs.appServiceName }} @@ -123,3 +156,6 @@ jobs: action: upload skip_app_build: true skip_api_build: true + + + deploy_infrastructure \ No newline at end of file From 55ae7864ec0b9dce8c2412023080d7ba54c8052f Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:04:19 +0100 Subject: [PATCH 03/21] fixed the CICD pipeline deployment jobs --- .github/workflows/deploy-infra-and-apps.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 501343d7..8510fdc5 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -157,5 +157,3 @@ jobs: skip_app_build: true skip_api_build: true - - deploy_infrastructure \ No newline at end of file From 93131776fdba43a3ae346e4d42daf91351659445 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:07:02 +0100 Subject: [PATCH 04/21] dunno i just removec some blank lines and a commented on --- .github/workflows/deploy-infra-and-apps.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 8510fdc5..b0840739 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -3,10 +3,7 @@ on: tags: - 'v[0-9].[0-9].[0-9]' workflow_dispatch: -# on -# ... - - + permissions: # Require write permission to Fetch an OIDC token (required for federated credential) and write it From 9c106a2d2990f4f3948e79ae21c5bbeca0b34bb9 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:15:20 +0100 Subject: [PATCH 05/21] en mettant les artefact c'est mieux --- .github/workflows/deploy-infra-and-apps.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index b0840739..d6006ea4 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -3,7 +3,7 @@ on: tags: - 'v[0-9].[0-9].[0-9]' workflow_dispatch: - + permissions: # Require write permission to Fetch an OIDC token (required for federated credential) and write it @@ -28,9 +28,11 @@ jobs: run: npm install && npm run build working-directory: ./frontend - - name: Run the linting script - run: npm run lint - working-directory: ./frontend + - name: 'Createa artefact frontend' + uses: actions/upload-artifact@v4 + with: + name: react-frontend-build + path : ./frontend build-dotnet-app-release-backend-job: runs-on: ubuntu-latest @@ -49,6 +51,13 @@ jobs: run: dotnet build --configuration Release working-directory: ./backend + + - name: 'Create artefact' + uses: actions/upload-artifact@v4 + with: + name: dotnet-backend-build + path : ./backend + deploy_infrastructure: runs-on: ubuntu-latest needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job @@ -82,6 +91,8 @@ jobs: template: ./infrastructure/main.bicep parameters: project=${{ vars.PROJECT_NAME }} location=${{ secrets.AZURE_REGION }} swaLocation=${{ secrets.AZURE_SWA_REGION }} identifier=${{ vars.AZURE_RESOURCE_IDENTIFIER }} resourceGroupName: ${{ env.AZURE_RG_NAME }} + + deploy_backend: runs-on: ubuntu-latest needs: deploy_infrastructure From d07a834a12d4dbe837c813c1d953dabd2a832f33 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:16:46 +0100 Subject: [PATCH 06/21] avec d'autres fichiers qui plantent aussi... --- .github/workflows/deploy-infra-and-app-PR.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-infra-and-app-PR.yml b/.github/workflows/deploy-infra-and-app-PR.yml index e7d6ab7e..b555b544 100644 --- a/.github/workflows/deploy-infra-and-app-PR.yml +++ b/.github/workflows/deploy-infra-and-app-PR.yml @@ -1,5 +1,8 @@ - +on: + pull_request: + branches: + - main jobs: build-reactapp-lint-frontend-job: runs-on: ubuntu-latest @@ -39,4 +42,3 @@ jobs: needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job environment: production - From e0aa52de6902812538161378a6d540008ad8b13d Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:17:47 +0100 Subject: [PATCH 07/21] yen a marre de ce fichier --- .github/workflows/deploy-infra-and-app-PR.yml | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/deploy-infra-and-app-PR.yml b/.github/workflows/deploy-infra-and-app-PR.yml index b555b544..a2dd3c2d 100644 --- a/.github/workflows/deploy-infra-and-app-PR.yml +++ b/.github/workflows/deploy-infra-and-app-PR.yml @@ -1,44 +1,44 @@ -on: - pull_request: - branches: - - main -jobs: - build-reactapp-lint-frontend-job: - runs-on: ubuntu-latest - environment: production - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Build the react app - production mode - run: npm install && npm run build - working-directory: ./frontend - - - name: Run the linting script - run: npm run lint - working-directory: ./frontend - - build-dotnet-app-release-backend-job: - runs-on: ubuntu-latest - environment: production - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup .NET SDK 9.0.x - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '9.0.x' - - - name: Build the dotnet app in release mode - run: dotnet build --configuration Release - working-directory: ./backend - - deploy_infrastructure: - runs-on: ubuntu-latest - needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job - environment: production +# on: +# pull_request: +# branches: +# - main +# jobs: +# build-reactapp-lint-frontend-job: +# runs-on: ubuntu-latest +# environment: production + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v4 + +# - name: Build the react app - production mode +# run: npm install && npm run build +# working-directory: ./frontend + +# - name: Run the linting script +# run: npm run lint +# working-directory: ./frontend + +# build-dotnet-app-release-backend-job: +# runs-on: ubuntu-latest +# environment: production + +# steps: +# - name: Checkout repository +# uses: actions/checkout@v4 + +# - name: Setup .NET SDK 9.0.x +# uses: actions/setup-dotnet@v4 +# with: +# dotnet-version: '9.0.x' + +# - name: Build the dotnet app in release mode +# run: dotnet build --configuration Release +# working-directory: ./backend + +# deploy_infrastructure: +# runs-on: ubuntu-latest +# needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job +# environment: production From 247c4ced2f1dac0c9b99cb2ef9990ae64160f075 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:21:15 +0100 Subject: [PATCH 08/21] encore un fichier de con qui membete --- .github/workflows/CICDPipe.yml | 42 +++++++++++++++++----------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/CICDPipe.yml b/.github/workflows/CICDPipe.yml index aa4b9842..01e46aa1 100644 --- a/.github/workflows/CICDPipe.yml +++ b/.github/workflows/CICDPipe.yml @@ -1,30 +1,30 @@ -on: [release, workflow_dispatch] +# on: [release, workflow_dispatch] -jobs: - build-reactapp-lint-frontend-job: - runs-on: ubuntu-latest - environment: production +# jobs: +# build-reactapp-lint-frontend-job: +# runs-on: ubuntu-latest +# environment: production - steps: - - name: Checkout repository - uses: actions/checkout@v4 +# steps: +# - name: Checkout repository +# uses: actions/checkout@v4 - - name: Build the react app - production mode - run: npm install && npm run build - working-directory: ./frontend +# - name: Build the react app - production mode +# run: npm install && npm run build +# working-directory: ./frontend - create-artifact-frontend-job: - runs-on: ubuntu-latest - needs: build-reactapp-lint-frontend-job - environment: production +# create-artifact-frontend-job: +# runs-on: ubuntu-latest +# needs: build-reactapp-lint-frontend-job +# environment: production - steps: - - name: Checkout repository - uses: actions/checkout@v4 +# steps: +# - name: Checkout repository +# uses: actions/checkout@v4 - steps: - - publish: ./frontend - artifact: FrontendArtifact +# steps: +# - publish: ./frontend +# artifact: FrontendArtifact From 94d7551ca2e3013213c4c9730938eb54789fff0d Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:24:57 +0100 Subject: [PATCH 09/21] jen sais rien de ce que je fais la --- .github/workflows/CICDPipe.yml | 31 ------- .github/workflows/deploy-infra-and-app-PR.yml | 85 +++++++++---------- 2 files changed, 42 insertions(+), 74 deletions(-) delete mode 100644 .github/workflows/CICDPipe.yml diff --git a/.github/workflows/CICDPipe.yml b/.github/workflows/CICDPipe.yml deleted file mode 100644 index 01e46aa1..00000000 --- a/.github/workflows/CICDPipe.yml +++ /dev/null @@ -1,31 +0,0 @@ -# on: [release, workflow_dispatch] - -# jobs: -# build-reactapp-lint-frontend-job: -# runs-on: ubuntu-latest -# environment: production - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v4 - -# - name: Build the react app - production mode -# run: npm install && npm run build -# working-directory: ./frontend - -# create-artifact-frontend-job: -# runs-on: ubuntu-latest -# needs: build-reactapp-lint-frontend-job -# environment: production - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v4 - -# steps: -# - publish: ./frontend -# artifact: FrontendArtifact - - - - \ No newline at end of file diff --git a/.github/workflows/deploy-infra-and-app-PR.yml b/.github/workflows/deploy-infra-and-app-PR.yml index a2dd3c2d..5a8e55bd 100644 --- a/.github/workflows/deploy-infra-and-app-PR.yml +++ b/.github/workflows/deploy-infra-and-app-PR.yml @@ -1,44 +1,43 @@ - -# on: -# pull_request: -# branches: -# - main -# jobs: -# build-reactapp-lint-frontend-job: -# runs-on: ubuntu-latest -# environment: production - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v4 - -# - name: Build the react app - production mode -# run: npm install && npm run build -# working-directory: ./frontend - -# - name: Run the linting script -# run: npm run lint -# working-directory: ./frontend - -# build-dotnet-app-release-backend-job: -# runs-on: ubuntu-latest -# environment: production - -# steps: -# - name: Checkout repository -# uses: actions/checkout@v4 - -# - name: Setup .NET SDK 9.0.x -# uses: actions/setup-dotnet@v4 -# with: -# dotnet-version: '9.0.x' - -# - name: Build the dotnet app in release mode -# run: dotnet build --configuration Release -# working-directory: ./backend - -# deploy_infrastructure: -# runs-on: ubuntu-latest -# needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job -# environment: production +on: + pull_request: + branches: + - main +jobs: + build-reactapp-lint-frontend-job: + runs-on: ubuntu-latest + environment: production + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build the react app - production mode + run: npm install && npm run build + working-directory: ./frontend + + - name: Run the linting script + run: npm run lint + working-directory: ./frontend + + build-dotnet-app-release-backend-job: + runs-on: ubuntu-latest + environment: production + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET SDK 9.0.x + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '9.0.x' + + - name: Build the dotnet app in release mode + run: dotnet build --configuration Release + working-directory: ./backend + + deploy_infrastructure: + runs-on: ubuntu-latest + needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job + environment: production From af7555777ca17e094ee59a1d4cce65d032458b23 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:26:21 +0100 Subject: [PATCH 10/21] j'avais un truc de trop dans deploy infra pr --- .github/workflows/deploy-infra-and-app-PR.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy-infra-and-app-PR.yml b/.github/workflows/deploy-infra-and-app-PR.yml index 5a8e55bd..d71ed925 100644 --- a/.github/workflows/deploy-infra-and-app-PR.yml +++ b/.github/workflows/deploy-infra-and-app-PR.yml @@ -36,8 +36,5 @@ jobs: run: dotnet build --configuration Release working-directory: ./backend - deploy_infrastructure: - runs-on: ubuntu-latest - needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job - environment: production + From 0c16031344ff5eaaf19d350193179ae293b24aa0 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:43:28 +0100 Subject: [PATCH 11/21] mise en parallele --- .github/workflows/deploy-infra-and-apps.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index d6006ea4..04686d52 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -60,7 +60,7 @@ jobs: deploy_infrastructure: runs-on: ubuntu-latest - needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job + needs : [build-dotnet-app-release-backend-job, build-reactapp-lint-frontend-job] # Ensure this job runs after the pull_request job environment: production # bind the job to the production environment outputs: appServiceName: ${{ steps.bicep_deploy.outputs.appServiceName }} @@ -107,8 +107,11 @@ jobs: with: dotnet-version: '9.0.x' - - name: Publish the app - run: dotnet publish -c Release --property:PublishDir=publish # Publish the app to the API project publish folder + - name : Deploy artefact backend + uses : actions/download-artifact@v4 + with : + name : dotnet-backend-build + path: ./backend working-directory: ./backend # Specify where to find the solution file in repository - name: Login to Azure @@ -134,10 +137,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Build the app - run: npm install && npm run build - working-directory: ./frontend + - name : Deploy artefact frontend + uses : actions/download-artifact@v4 + with : + name : frontend-build + path: ./frontend + - name: Login to Azure uses: azure/login@v2 with: From f661840746cc4f8dc90c301e1bd01220385c9e14 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:47:56 +0100 Subject: [PATCH 12/21] je fix un truc en mettant exactemetn la meme chose --- .github/workflows/deploy-infra-and-apps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 04686d52..9f5d7f76 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -60,7 +60,7 @@ jobs: deploy_infrastructure: runs-on: ubuntu-latest - needs : [build-dotnet-app-release-backend-job, build-reactapp-lint-frontend-job] # Ensure this job runs after the pull_request job + needs : [build-dotnet-app-release-backend-job, build-reactapp-lint-frontend-job] # Ensure this job runs after the pull_request job environment: production # bind the job to the production environment outputs: appServiceName: ${{ steps.bicep_deploy.outputs.appServiceName }} From 505dadd8dfca5513713e24a5041f3c1dd7cc7ead Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 14:50:02 +0100 Subject: [PATCH 13/21] ils seront pas en parrelle et c'est tres bien comme ca --- .github/workflows/deploy-infra-and-apps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 9f5d7f76..08d8f225 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -60,7 +60,7 @@ jobs: deploy_infrastructure: runs-on: ubuntu-latest - needs : [build-dotnet-app-release-backend-job, build-reactapp-lint-frontend-job] # Ensure this job runs after the pull_request job + needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job environment: production # bind the job to the production environment outputs: appServiceName: ${{ steps.bicep_deploy.outputs.appServiceName }} From 2fb8d771b5e656489be9f9b4c68c8e77062a1de2 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 15:16:44 +0100 Subject: [PATCH 14/21] fixed indenation --- .github/workflows/deploy-infra-and-apps.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 08d8f225..ea65e5d9 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -60,7 +60,7 @@ jobs: deploy_infrastructure: runs-on: ubuntu-latest - needs : build-dotnet-app-release-backend-job # Ensure this job runs after the pull_request job + needs : [build-dotnet-app-release-backend-job, build-reactapp-lint-frontend-job] # Ensure this job runs after the pull_request job environment: production # bind the job to the production environment outputs: appServiceName: ${{ steps.bicep_deploy.outputs.appServiceName }} @@ -137,7 +137,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name : Deploy artefact frontend + - name : Deploy artefact frontend uses : actions/download-artifact@v4 with : name : frontend-build From 62fd2ef9bcc29289c90f8400da7422cc7853fdde Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 15:18:02 +0100 Subject: [PATCH 15/21] indenation 115 --- .github/workflows/deploy-infra-and-apps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index ea65e5d9..4cd15cb1 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -112,7 +112,7 @@ jobs: with : name : dotnet-backend-build path: ./backend - working-directory: ./backend # Specify where to find the solution file in repository + working-directory: ./backend # Specify where to find the solution file in repository - name: Login to Azure uses: azure/login@v2 From a276c1644f706fa7f5b6cf281d2de7d8e8c418b7 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 15:24:34 +0100 Subject: [PATCH 16/21] changed frontent deployment name --- .github/workflows/deploy-infra-and-apps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 4cd15cb1..8452fb19 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -140,7 +140,7 @@ jobs: - name : Deploy artefact frontend uses : actions/download-artifact@v4 with : - name : frontend-build + name : react-frontend-build path: ./frontend From 38660893f006f534e7e946b547ff5d99119c6b58 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 15:29:59 +0100 Subject: [PATCH 17/21] removed paths --- .github/workflows/deploy-infra-and-apps.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 8452fb19..54deb09a 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -32,7 +32,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: react-frontend-build - path : ./frontend + build-dotnet-app-release-backend-job: runs-on: ubuntu-latest @@ -56,7 +56,6 @@ jobs: uses: actions/upload-artifact@v4 with: name: dotnet-backend-build - path : ./backend deploy_infrastructure: runs-on: ubuntu-latest @@ -111,7 +110,7 @@ jobs: uses : actions/download-artifact@v4 with : name : dotnet-backend-build - path: ./backend + working-directory: ./backend # Specify where to find the solution file in repository - name: Login to Azure @@ -141,7 +140,7 @@ jobs: uses : actions/download-artifact@v4 with : name : react-frontend-build - path: ./frontend + - name: Login to Azure From db17fe80c01b3c8143d21d8ba14869642415ffaf Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 15:34:01 +0100 Subject: [PATCH 18/21] remis le path dans le build --- .github/workflows/deploy-infra-and-apps.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 54deb09a..90372280 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -32,7 +32,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: react-frontend-build - + path : ./frontend build-dotnet-app-release-backend-job: runs-on: ubuntu-latest @@ -110,7 +110,7 @@ jobs: uses : actions/download-artifact@v4 with : name : dotnet-backend-build - + working-directory: ./backend # Specify where to find the solution file in repository - name: Login to Azure From e5606bfb43d3da37f3a9304f9629454fa80f2384 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 15:36:35 +0100 Subject: [PATCH 19/21] changed some paths --- .github/workflows/deploy-infra-and-apps.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 90372280..5d49de21 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -56,6 +56,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: dotnet-backend-build + path : ./backend deploy_infrastructure: runs-on: ubuntu-latest @@ -111,7 +112,7 @@ jobs: with : name : dotnet-backend-build - working-directory: ./backend # Specify where to find the solution file in repository + - name: Login to Azure uses: azure/login@v2 From 4cc6f176c8c50d56fdb8204020ad652d409bf798 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 15:42:39 +0100 Subject: [PATCH 20/21] test app location --- .github/workflows/deploy-infra-and-apps.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index 5d49de21..e291efee 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -112,7 +112,7 @@ jobs: with : name : dotnet-backend-build - + - name: Login to Azure uses: azure/login@v2 @@ -166,7 +166,7 @@ jobs: uses: azure/static-web-apps-deploy@v1 with: azure_static_web_apps_api_token: ${{ env.SWA_DEPLOYMENT_TOKEN }} - app_location: frontend/dist + app_location: ./frontend action: upload skip_app_build: true skip_api_build: true From b0296838324e417dcd42c5400bad03fdbeebaa85 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 21 Jan 2026 15:50:23 +0100 Subject: [PATCH 21/21] changement de version artefact --- .github/workflows/deploy-infra-and-apps.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-infra-and-apps.yml b/.github/workflows/deploy-infra-and-apps.yml index e291efee..a270fdfb 100644 --- a/.github/workflows/deploy-infra-and-apps.yml +++ b/.github/workflows/deploy-infra-and-apps.yml @@ -108,9 +108,10 @@ jobs: dotnet-version: '9.0.x' - name : Deploy artefact backend - uses : actions/download-artifact@v4 + uses : actions/download-artifact@v5 with : name : dotnet-backend-build + path : ./backend @@ -125,7 +126,7 @@ jobs: uses: azure/webapps-deploy@v2 with: app-name: ${{ needs.deploy_infrastructure.outputs.appServiceName }} # Access to the previous job output to get the appServiceName deployed with bicep - package: ./backend/ParkNDeploy.Api/publish # Path to the previously published app + package: ./backend # deploy_infrastructure ... deploy_frontend: @@ -138,9 +139,10 @@ jobs: uses: actions/checkout@v4 - name : Deploy artefact frontend - uses : actions/download-artifact@v4 + uses : actions/download-artifact@v5 with : name : react-frontend-build + path : ./frontend