-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure.yaml
33 lines (32 loc) · 1.15 KB
/
azure.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
name: cosmos-db-nosql-dotnet-quickstart
services:
web:
project: ./src/web
language: csharp
host: containerapp
docker:
path: ./Dockerfile
context: ../
pipeline:
provider: github
hooks:
postprovision:
windows:
run: |
dotnet user-secrets set "AZURE_COSMOS_DB_NOSQL_ENDPOINT" "$env:AZURE_COSMOS_ENDPOINT" --project ./src/web/Cosmos.Samples.NoSQL.Quickstart.Web.csproj
Write-Host ""
Write-Host "View the running web application in Azure Container Apps:"
Write-Host "$env:AZURE_CONTAINER_APP_ENDPOINT" -ForegroundColor Cyan
shell: pwsh
continueOnError: false
interactive: true
posix:
run: |
dotnet user-secrets set "AZURE_COSMOS_DB_NOSQL_ENDPOINT" "$AZURE_COSMOS_ENDPOINT" --project ./src/web/Cosmos.Samples.NoSQL.Quickstart.Web.csproj
echo ""
echo "View the running web application in Azure Container Apps:"
echo -e "\033[0;36m$AZURE_CONTAINER_APP_ENDPOINT\033[0m"
shell: sh
continueOnError: false
interactive: true