File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313jobs :
1414 build :
15- runs-on : windows -latest
15+ runs-on : ubuntu -latest
1616 steps :
1717 - uses : actions/checkout@v4
1818 - name : Setup .NET SDK
3434 path : ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
3535
3636 deploy :
37- runs-on : windows-latest
37+ runs-on : ubuntu-latest
38+ environment : dev
3839 needs : build
3940 steps :
41+ - name : Log in with Azure
42+ uses : azure/login@v1
43+ with :
44+ creds : ' ${{ secrets.AZURE_CREDENTIALS }}'
4045 - name : Download artifact from build job
4146 uses : actions/download-artifact@v3
4247 with :
4550 - name : Deploy to Azure WebApp
4651 uses : azure/webapps-deploy@v2
4752 with :
48- app-name : ${{ secrets.AZURE_WEBAPP_NAME }}
49- publish-profile : ${{ secrets.PocketDDDServerWebAPI2024_3A54 }}
53+ app-name : pocketddd-dev-api-server
5054 package : ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
Original file line number Diff line number Diff line change @@ -21,6 +21,6 @@ resource "azurerm_mssql_database" "sqldb" {
2121
2222 # prevent the possibility of accidental data loss
2323 lifecycle {
24- prevent_destroy = true
24+ prevent_destroy = false
2525 }
2626}
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ resource "azurerm_key_vault" "key_vault" {
2222 secret_permissions = [
2323 " Get" ,
2424 " Set" ,
25- " List"
25+ " List" ,
26+ " Delete"
2627 ]
2728
2829 storage_permissions = [
Original file line number Diff line number Diff line change 1+ output "api_server_url" {
2+ value = azurerm_linux_web_app. api_server_web_app . default_hostname
3+ }
Original file line number Diff line number Diff line change 1+ Command to create a new deployment service principal
2+ ```
3+ az ad sp create-for-rbac -n DevDeployment --role Contributor --scopes /subscriptions/<insert-subscription-id>
4+ ```
5+ Add the JSON output as a secret named ` AZURE_CREDENTIALS ` to GitHub. I've added this as a secret specific to an environment
6+ ![ alt text] ( image.png )
You can’t perform that action at this time.
0 commit comments