Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ER-697: Azure - Patch Workflows #773

Merged
merged 9 commits into from
Aug 15, 2023
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"
}
Loading