Skip to content

Commit

Permalink
Ny oprettet Service Principal på Azure af navn
Browse files Browse the repository at this point in the history
• DB-Angora-Deployment

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
  • Loading branch information
Mikfri committed Nov 6, 2024
1 parent af21abc commit 5f7d9e8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/DB-Angora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f7d9e8

Please sign in to comment.