From 5f7d9e82a9eb77676692280fbb379b49e70c2097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20N=C3=B8rfeldt=20Friborg?= Date: Wed, 6 Nov 2024 15:59:32 +0100 Subject: [PATCH] =?UTF-8?q?Ny=20oprettet=20Service=20Principal=20p=C3=A5?= =?UTF-8?q?=20Azure=20af=20navn=20=E2=80=A2=20DB-Angora-Deployment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dens oplysninger er vidergivet til Github secrets i form af: • AZURE_CLIENT_ID • AZURE_TENANT_ID • AZURE_CLIENT_SECRET Levetiden pÃ¥ den ert ½ Ã¥r sÃ¥ der skal laves noget igen omkring 5 maj.. Derefter er har jeg i MikkRG (Ressource Group) oprettet en ny rolle 'Resource Policy Contributor' (sq have været 'Contributor', men den kunne ikke findes ). Dernæst er yaml opdateret --- .github/workflows/DB-Angora.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/DB-Angora.yml b/.github/workflows/DB-Angora.yml index cd44a33..fd93c87 100644 --- a/.github/workflows/DB-Angora.yml +++ b/.github/workflows/DB-Angora.yml @@ -77,7 +77,17 @@ jobs: - name: Azure Login uses: azure/login@v1 with: - creds: ${{ secrets.DB_AngoraManagerAPI_SPN }} + client-id: ${{ secrets.AZURE_CLIENT_ID }} # tilføjet + client-secret: ${{ secrets.AZURE_CLIENT_SECRET }} # tilføjet + #creds: ${{ secrets.DB_AngoraManagerAPI_SPN }} # skal den være der? + + # NYT STEP + - name: Deploy to Azure WebApp + uses: azure/webapps-deploy@v2 + with: + app-name: ${{ env.AZURE_WEBAPP_NAME }} + package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} + publish-profile: ${{ secrets.DB_Angora_2FD5 }} - name: Import API into Azure API Management run: az apim api import --path "${{ env.AZURE_APIM_RESOURCE_PATH }}" --resource-group "${{ env.AZURE_APIM_RESOURCEGROUP }}" --service-name "${{ env.AZURE_APIM_SERVICENAME }}" --api-id "${{ env.AZURE_APIM_API_ID }}" --service-url "${{ env.AZURE_APIM_APPSERVICEURL }}" --specification-path "${{ env.API_IMPORT_SPECIFICATION_PATH }}" --specification-format OpenApi --subscription-required false