Skip to content

Commit

Permalink
added cloudflare config script
Browse files Browse the repository at this point in the history
  • Loading branch information
christian bellee authored and christian bellee committed Dec 31, 2024
1 parent fd735fe commit e26a771
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 40 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
CLOUDFLARE_ZONE_ID: 'b553a0e598bd23879036daf46b81cbb3'
CLOUDFLARE_EMAIL: '[email protected]'
CLOUDFLARE_API_KEY: 'cloudflare_api_key'
SCRIPT_URI: 'https://raw.githubusercontent.com/cbellee/photo-api/refs/heads/main/cloudflare.ps1'

jobs:
deploy-rg-job:
Expand Down Expand Up @@ -149,4 +150,5 @@ jobs:
--parameters cNameRecord=${{ vars.CNAME }} \
--parameters zoneName=${{ vars.ZONE_NAME }} \
--parameters cloudFlareApiToken=${{ secrets.CLOUDFLARE_API_TOKEN }} \
--parameters cloudFlareZoneId=${{ secrets.CLOUDFLARE_ZONE_ID }}
--parameters cloudFlareZoneId=${{ secrets.CLOUDFLARE_ZONE_ID }} \
--parameters scriptUri=${{ env.SCRIPT_URI }}
39 changes: 0 additions & 39 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ param cpuResource string = '0.25'
param memoryResource string = '0.5Gi'
param zoneName string = 'bellee.net'
param cNameRecord string = 'photo'
// param dnsResourceGroupName string = 'external-domain-rg'
param ghcrName string = 'ghcr.io'
param githubUsername string = 'cbellee'
param utcValue string = utcNow()
Expand Down Expand Up @@ -84,7 +83,6 @@ module storage './modules/stor.bicep' = {
tags: tags
containers: containers
sku: 'Standard_LRS'
//deployCustomDomain: false
}
}

Expand All @@ -96,43 +94,6 @@ module workspace 'br/public:avm/res/operational-insights/workspace:0.3.4' = {
}
}

/* resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
name: storageAccountName
location: resourceGroup().location
tags: tags
sku: {
name: 'Standard_LRS'
}
kind: 'StorageV2'
}
resource blobService 'Microsoft.Storage/storageAccounts/blobServices@2023-04-01' = {
parent: storage
name: 'default'
}
resource blobContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2023-04-01' = [
for container in containers: {
parent: blobService
name: container.name
properties: {
publicAccess: container.publicAccess
}
}
]
resource queueService 'Microsoft.Storage/storageAccounts/queueServices@2023-04-01' = {
parent: storage
name: 'default'
}
resource storageQueues 'Microsoft.Storage/storageAccounts/queueServices/queues@2023-01-01' = [
for container in containers: {
parent: queueService
name: container.name
}
] */

@batchSize(1)
module egt 'br/public:avm/res/event-grid/system-topic:0.2.6' = [
for container in containers: {
Expand Down

0 comments on commit e26a771

Please sign in to comment.