Skip to content

Commit

Permalink
Fix Production deployment (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
russdaygh authored Apr 25, 2024
1 parent 5cf973e commit 238c6e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/DeployEverything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ jobs:

- run: |
cp PocketDDD.BlazorClient/PocketDDD.BlazorClient/wwwroot/appsettings.${{ inputs.env }}.json PocketDDD.BlazorClient/PocketDDD.BlazorClient/wwwroot/appsettings.Production.json
if: ${{ inputs.env != 'Production' }}
- run: |
apiToken=$(az staticwebapp secrets list --name pocketddd-${{ inputs.env }}-blazorclient --query "properties.apiKey" -o tsv)
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/DeployMainBranch.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Deploy Branch Push
name: Deploy Main to Production
on:
push:
branches:
- 'main'
- 'fixProdDeployment'

jobs:
deploy_to_test:
deploy_to_production:
uses: ./.github/workflows/DeployEverything.yml
with:
env: "Production"
Expand Down
6 changes: 3 additions & 3 deletions terraform/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ output "api_server_url" {
value = "https://${azurerm_linux_web_app.api_server_web_app.default_hostname}/"
}

# output "client_app_public_url" {
# value =
# }
output "client_app_public_url" {
value = "https://${azurerm_static_web_app_custom_domain.custom_domain.domain_name}"
}
2 changes: 1 addition & 1 deletion tfvars/Production.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
env = "prod"
env = "production"
sql_db_sku = "Basic"
sql_max_storage = "2"
api_app_service_sku = "B1"
Expand Down

0 comments on commit 238c6e4

Please sign in to comment.