Skip to content

Commit

Permalink
fix main deployment (#35)
Browse files Browse the repository at this point in the history
now you can use the azure template again
  • Loading branch information
paule96 authored Oct 8, 2023
1 parent 63baf8e commit bef6a2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 3 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ stages:
changeLogType: 'commitBased'
- stage: ReleaseToAzure
displayName: Release to Azure
dependsOn: Build
dependsOn:
- Build
- ReleaseToGithub
condition: succeeded()
jobs:
- deployment: DeployAzure
Expand Down
4 changes: 1 addition & 3 deletions deploayWebApp.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@ resource deployWebApp 'Microsoft.Resources/deploymentScripts@2020-10-01' = if (e
arguments: '-staticWebAppName ${webSiteName} -resourceGroupName ${resourceGroup().name}'
scriptContent: '''
param(
[string] $githubToken,
[string] $staticWebAppName,
[string] $resourceGroupName,
[string] $branch
[string] $resourceGroupName
)
# take stable releases here
$result = Invoke-RestMethod https://api.github.com/repos/codez-one/CZ.Azure.FileExchange/releases/latest -Headers @{"X-GitHub-Api-Version" = "2022-11-28" }
Expand Down
6 changes: 3 additions & 3 deletions main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module basics 'deployBasics.bicep' = {
module webappDeployment 'deploayWebApp.bicep' = {
name: 'deployment'
params: {
webSiteName: basics.outputs.website.name
webSiteName: last(split(basics.outputs.website.resourceId, '/'))
location: location
}
}
Expand All @@ -23,8 +23,8 @@ module events 'deployEvent.bicep' = {
webappDeployment
]
params: {
baseUrl: 'https://${basics.outputs.website.properties.defaultHostname}'
baseUrl: webappDeployment.outputs.staticWebAppHost
location: location
storageAccountName: basics.outputs.storage.name
storageAccountName: last(split(basics.outputs.storage.resourceId, '/'))
}
}

0 comments on commit bef6a2a

Please sign in to comment.