Skip to content

Commit 0dcfd9b

Browse files
authored
Fix deployments (#21)
1 parent 161adfd commit 0dcfd9b

7 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/DeployBranchPush.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Deploy Branch Push
22
on:
3+
workflow_dispatch:
34
push:
45
branches-ignore:
56
- 'main'
67

78
jobs:
8-
deploy_to_test:
9+
deploy_to_dev:
910
uses: ./.github/workflows/DeployEverything.yml
1011
with:
11-
env: "Test2"
12+
env: "dev"
1213
secrets:
1314
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
1415
AZURE_STATIC_WEB_APPS_API_TOKEN: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}

.github/workflows/DeployMainBranch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Deploy Main to Production
22
on:
3+
workflow_dispatch:
34
push:
45
branches:
56
- 'main'

.github/workflows/DeployServerWebAPI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Publish
2727
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
2828
- name: Publish Artifacts
29-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
3030
with:
3131
name: webapp
3232
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
@@ -41,7 +41,7 @@ jobs:
4141
with:
4242
creds: '${{ secrets.AZURE_CREDENTIALS }}'
4343
- name: Download artifact from build job
44-
uses: actions/download-artifact@v3
44+
uses: actions/download-artifact@v4
4545
with:
4646
name: webapp
4747
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"apiUrl": "https://pocketddd-dev-api-server-web-app.azurewebsites.net/api/",
3+
"fakeBackend": false
4+
}

PocketDDD.BlazorClient/PocketDDD.BlazorClient/wwwroot/appsettings.test.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

terraform/blazor_client.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ data "cloudflare_zone" "dns_zone" {
2828
resource "cloudflare_record" "cname_record" {
2929
zone_id = data.cloudflare_zone.dns_zone.id
3030
name = local.subdomain
31-
value = azurerm_static_web_app.blazor-client.default_host_name
31+
content = azurerm_static_web_app.blazor-client.default_host_name
3232
type = "CNAME"
3333
ttl = 3600
3434
}
3535

3636
resource "azurerm_static_web_app_custom_domain" "custom_domain" {
3737
static_web_app_id = azurerm_static_web_app.blazor-client.id
38-
domain_name = "${cloudflare_record.cname_record.name}.${data.cloudflare_zone.dns_zone.name}"
38+
domain_name = "${cloudflare_record.cname_record.hostname}"
3939
validation_type = "cname-delegation"
4040
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
env = "test"
1+
env = "dev"
22
sql_db_sku = "Basic"
33
sql_max_storage = "2"
44
api_app_service_sku = "F1"

0 commit comments

Comments
 (0)