Skip to content

Commit

Permalink
ER-697: Azure - Patch Workflows (#773)
Browse files Browse the repository at this point in the history
* ER-697: Omit sticky settings

* ER-709: OIDC permissions

* ER-697: Container Registry environment  variable

* ER=697: Workflow permissions

* ER-697: Review App VNET integration

* ER-697: Syntax correction

* ER-697: Terraform init command

---------

Co-authored-by: Sunny Sidhu <[email protected]>
  • Loading branch information
sunny-sidhu-and and sunny-sidhu-and authored Aug 15, 2023
1 parent a57aa73 commit 1adec95
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/azure-deploy-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ jobs:
--slot ${{ env.PR_NUMBER }} \
--configuration-source ${{ vars.REVIEWAPP_NAME }} \
--deployment-container-image-name ${{ env.DOCKER_IMAGE }}:${{ env.PR_NUMBER }}
az webapp vnet-integration add --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} \
--name ${{ vars.REVIEWAPP_NAME }} \
--slot ${{ env.PR_NUMBER }} \
--subnet ${{ secrets.AZURE_REVIEW_APP_SUBNET }} \
--vnet ${{ secrets.AZURE_VNET }}
az webapp config appsettings set --resource-group ${{ secrets.AZURE_RESOURCE_GROUP }} \
--name ${{ vars.REVIEWAPP_NAME }} \
--slot ${{ env.PR_NUMBER }} \
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/tf-azure-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,12 @@ jobs:

# Initialise a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
- name: Terraform Init
run: terraform init
run: >
terraform init
-backend-config="resource_group_name=${{ secrets.TERRAFORM_STATE_RESOURCE_GROUP }}"
-backend-config="storage_account_name=${{ secrets.TERRAFORM_STATE_STORAGE_ACCOUNT_NAME }}"
-backend-config="container_name=${{ secrets.TERRAFORM_STATE_STORAGE_CONTAINER_NAME }}"
-backend-config="key=${{ secrets.TERRAFORM_STATE_KEY }}"
# Download saved plan from artifacts
- name: Download Terraform Plan
Expand Down
4 changes: 2 additions & 2 deletions terraform-azure/terraform-azure-database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ resource "azurerm_postgresql_flexible_server_configuration" "psqlfs_config" {
resource "azurerm_postgresql_flexible_server_database" "psqldb" {
name = "${var.resource_name_prefix}-${random_pet.name.id}-psqldb"
server_id = azurerm_postgresql_flexible_server.psqlfs.id
collation = "en_US.UTF8"
charset = "UTF8"
collation = "en_US.utf8"
charset = "utf8"
}

0 comments on commit 1adec95

Please sign in to comment.