-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #307 from microsoft/dev
update to microsoft.identity
- Loading branch information
Showing
8 changed files
with
90 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
param name string | ||
param serviceUrl string | ||
param repository string | ||
param registryName string = 'TeamCloud' | ||
|
||
resource api_webhook 'Microsoft.ContainerRegistry/registries/webhooks@2021-09-01' = { | ||
name: '${registryName}/${name}' | ||
location: resourceGroup().location | ||
properties: { | ||
actions: [ | ||
'push' | ||
] | ||
scope: repository | ||
serviceUri: serviceUrl | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
param registryName string = 'TeamCloud' | ||
param registryResourceGroupName string = 'TeamCloud-Registry' | ||
param registrySubscriptionId string = 'b6de8d3f-8477-45fe-8d60-f30c6db2cb06' | ||
|
||
param apiAppName string = 'teamclouddemo-api' | ||
param orchestratorAppName string = 'teamclouddemo-orchestrator' | ||
param webAppName string = 'teamclouddemo' | ||
|
||
// param resourceGroupName string = 'TeamCloud' | ||
// param subscriptionId string = '12223725-70b0-45a6-96c4-a13c344fdc57' | ||
|
||
resource api 'Microsoft.Web/sites@2021-02-01' existing = { | ||
name: apiAppName | ||
} | ||
|
||
resource orchestrator 'Microsoft.Web/sites@2021-02-01' existing = { | ||
name: orchestratorAppName | ||
} | ||
|
||
resource website 'Microsoft.Web/sites@2021-02-01' existing = { | ||
name: webAppName | ||
} | ||
|
||
module api_webhook 'webhook.bicep' = { | ||
scope: resourceGroup(registrySubscriptionId, registryResourceGroupName) | ||
name: 'apiWebhook' | ||
params: { | ||
name: 'webapi' | ||
registryName: registryName | ||
repository: 'teamcloud/api' | ||
serviceUrl: '${list('${api.id}/config/publishingcredentials', api.apiVersion).properties.scmUri}/docker/hook' | ||
} | ||
} | ||
|
||
module orchestrator_webhook 'webhook.bicep' = { | ||
scope: resourceGroup(registrySubscriptionId, registryResourceGroupName) | ||
name: 'orchestratorWebhook' | ||
params: { | ||
name: 'orchestrator' | ||
registryName: registryName | ||
repository: 'teamcloud/orchestrator' | ||
serviceUrl: '${list('${orchestrator.id}/config/publishingcredentials', orchestrator.apiVersion).properties.scmUri}/docker/hook' | ||
} | ||
} | ||
|
||
module website_webhook 'webhook.bicep' = { | ||
scope: resourceGroup(registrySubscriptionId, registryResourceGroupName) | ||
name: 'websiteWebhook' | ||
params: { | ||
name: 'website' | ||
registryName: registryName | ||
repository: 'teamcloud/website' | ||
serviceUrl: '${list('${website.id}/config/publishingcredentials', website.apiVersion).properties.scmUri}/docker/hook' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters