-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
979 additions
and
6 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
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
Binary file added
BIN
+78.2 KB
Documentation/Blazorise.Docs.Server/wwwroot/img/blog/2024-10-16/hero.webp
Binary file not shown.
Binary file added
BIN
+33 KB
Documentation/Blazorise.Docs.Server/wwwroot/img/blog/2024-10-16/img-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.2 KB
Documentation/Blazorise.Docs.Server/wwwroot/img/blog/2024-10-16/img-14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.5 KB
Documentation/Blazorise.Docs.Server/wwwroot/img/blog/2024-10-16/img-17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.8 KB
Documentation/Blazorise.Docs.Server/wwwroot/img/blog/2024-10-16/img-18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25 KB
Documentation/Blazorise.Docs.Server/wwwroot/img/blog/2024-10-16/img-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.84 KB
Documentation/Blazorise.Docs.Server/wwwroot/img/blog/2024-10-16/img-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.2 KB
Documentation/Blazorise.Docs.Server/wwwroot/img/blog/2024-10-16/img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
5 changes: 5 additions & 0 deletions
5
...ntainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry10Code.html
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,5 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="powershell"><pre> | ||
az containerapp registry set <span class="powershellOperator">--</span>name azurecontainerapptest3 <span class="powershellOperator">--</span>resource<span class="powershellOperator">-</span>group testingRG <span class="powershellOperator">--</span>server ghcr.io <span class="powershellOperator">--</span>username tesar<span class="powershellOperator">-</span>tech <span class="powershellOperator">--</span>password ghp_yourpat | ||
</pre></div> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...ontainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry1Code.html
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,5 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="powershell"><pre> | ||
dotnet new blazor <span class="powershellOperator">--</span>empty <span class="powershellOperator">-</span>o AzureContainerAppTest | ||
</pre></div> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
...ontainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry2Code.html
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,29 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="html"><pre> | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base | ||
USER app | ||
WORKDIR /app | ||
EXPOSE 8080 | ||
|
||
# This stage is used to build the service project | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
ARG BUILD_CONFIGURATION=Release | ||
WORKDIR /src | ||
COPY ["AzureContainerAppTest.csproj", "."] | ||
RUN dotnet restore "./AzureContainerAppTest.csproj" | ||
COPY . . | ||
WORKDIR "/src/." | ||
RUN dotnet build "./AzureContainerAppTest.csproj" -c $BUILD_CONFIGURATION -o /app/build | ||
|
||
# This stage is used to publish the service project to be copied to the final stage | ||
FROM build AS publish | ||
ARG BUILD_CONFIGURATION=Release | ||
RUN dotnet publish "./AzureContainerAppTest.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false | ||
|
||
# This stage is used in production or when running from VS in regular mode (Default when not using the Debug configuration) | ||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app/publish . | ||
ENTRYPOINT ["dotnet", "AzureContainerAppTest.dll"] | ||
</pre></div> | ||
</div> |
66 changes: 66 additions & 0 deletions
66
...ontainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry3Code.html
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,66 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="html"><pre> | ||
name: Build and deploy .NET application to Azure Container App using GHCR | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
CONTAINER_APP_NAME: azurecontainerapptest3 # name we set up in azure portal | ||
RESOURCE_GROUP: testingRG # azure resource group | ||
CONTAINER_REGISTRY_SERVER: ghcr.io # using github container registry | ||
DOCKER_FILE_PATH: ./Dockerfile # where our docker file is located | ||
PACKAGE_NAME: azurecontainerapptest/containertest #package name on ghcr.io. | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write #need to setup the permission to create packages | ||
contents: read | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout<span class="atSign">@</span>v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action<span class="atSign">@</span>v3 | ||
|
||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action<span class="atSign">@</span>v3 | ||
with: | ||
registry: ${{ env.CONTAINER_REGISTRY_SERVER }} | ||
username: ${{ github.actor }} #github username | ||
password: ${{ secrets.GITHUB_TOKEN }} # github token from secrets | ||
|
||
- name: Build and push container image to GHCR | ||
uses: docker/build-push-action<span class="atSign">@</span>v5 | ||
with: | ||
push: true | ||
tags: ${{ env.CONTAINER_REGISTRY_SERVER }}/${{ github.actor }}/${{ env.PACKAGE_NAME }}:${{ github.sha }} | ||
file: ${{ env.DOCKER_FILE_PATH }} | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
|
||
- name: Azure Login | ||
uses: azure/login<span class="atSign">@</span>v2 | ||
with: | ||
creds: ${{ secrets.AZURECONTAINERAPPTEST3_SPN }} # Stored secret for Azure login | ||
|
||
- name: Update container app | ||
uses: azure/CLI<span class="atSign">@</span>v2 | ||
with: | ||
inlineScript: | | ||
az config set extension.use_dynamic_install=yes_without_prompt | ||
|
||
az containerapp update --name ${{ env.CONTAINER_APP_NAME }} \ | ||
--resource-group ${{ env.RESOURCE_GROUP }} \ | ||
--image ${{ env.CONTAINER_REGISTRY_SERVER }}/${{ github.actor }}/${{ env.PACKAGE_NAME }}:${{ github.sha }} \ | ||
|
||
- name: Logout | ||
run: az logout | ||
</pre></div> | ||
</div> |
6 changes: 6 additions & 0 deletions
6
...ontainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry4Code.html
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,6 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="html"><pre> | ||
env: | ||
PACKAGE_NAME: azurecontainerapptest/containertest #package name on ghcr.io. | ||
</pre></div> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
...ontainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry5Code.html
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,9 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="html"><pre> | ||
uses: docker/build-push-action<span class="atSign">@</span>v5 | ||
with: | ||
push: true | ||
tags: ${{ env.CONTAINER_REGISTRY_SERVER }}/${{ github.actor }}/${{ env.PACKAGE_NAME }}:${{ github.sha }} | ||
file: ${{ env.DOCKER_FILE_PATH }} | ||
</pre></div> | ||
</div> |
7 changes: 7 additions & 0 deletions
7
...ontainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry6Code.html
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,7 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="html"><pre> | ||
uses: azure/login<span class="atSign">@</span>v2 | ||
with: | ||
creds: ${{ secrets.AZURECONTAINERAPPTEST3_SPN }} | ||
</pre></div> | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...ontainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry7Code.html
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,5 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="powershell"><pre> | ||
az ad sp create<span class="powershellOperator">-</span><span class="keyword">for</span><span class="powershellOperator">-</span>rbac <span class="powershellOperator">--</span>name azurecontainerapptest3 <span class="powershellOperator">--</span>role contributor <span class="powershellOperator">--</span>scopes <span class="powershellOperator">/</span>subscriptions<span class="powershellOperator">/</span><span class="powershellOperator">--</span>your<span class="powershellOperator">-</span>subscription<span class="powershellOperator">-</span>id<span class="powershellOperator">--</span><span class="powershellOperator">/</span>resourceGroups<span class="powershellOperator">/</span>testingRG<span class="powershellOperator">/</span>providers<span class="powershellOperator">/</span>Microsoft.App<span class="powershellOperator">/</span>containerApps<span class="powershellOperator">/</span>azurecontainerapptest3 <span class="powershellOperator">/</span>subscriptions<span class="powershellOperator">/</span><span class="powershellOperator">--</span>your<span class="powershellOperator">-</span>subscription<span class="powershellOperator">-</span>id<span class="powershellOperator">--</span><span class="powershellOperator">/</span>resourceGroups<span class="powershellOperator">/</span>testingRG<span class="powershellOperator">/</span>providers<span class="powershellOperator">/</span>Microsoft.App<span class="powershellOperator">/</span>managedEnvironments<span class="powershellOperator">/</span>AzureContainerAppTest <span class="powershellOperator">--</span>json<span class="powershellOperator">-</span>auth | ||
</pre></div> | ||
</div> |
16 changes: 16 additions & 0 deletions
16
...ontainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry8Code.html
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 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="html"><pre> | ||
{ | ||
"clientId": "******", | ||
"clientSecret": "********", | ||
"subscriptionId": "yourSubscriptionId", | ||
"tenantId": "yourTenantId", | ||
"activeDirectoryEndpointUrl": "https://login.microsoftonline.com", | ||
"resourceManagerEndpointUrl": "https://management.azure.com/", | ||
"activeDirectoryGraphResourceId": "https://graph.windows.net/", | ||
"sqlManagementEndpointUrl": "https://management.core.windows.net:8443/", | ||
"galleryEndpointUrl": "https://gallery.azure.com/", | ||
"managementEndpointUrl": "https://management.core.windows.net/" | ||
} | ||
</pre></div> | ||
</div> |
12 changes: 12 additions & 0 deletions
12
...ontainerRegistry/Code/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry9Code.html
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,12 @@ | ||
<div class="blazorise-codeblock"> | ||
<div class="html"><pre> | ||
uses: azure/CLI<span class="atSign">@</span>v2 | ||
with: | ||
inlineScript: | | ||
az config set extension.use_dynamic_install=yes_without_prompt | ||
|
||
az containerapp update --name ${{ env.CONTAINER_APP_NAME }} \ | ||
--resource-group ${{ env.RESOURCE_GROUP }} \ | ||
--image ${{ env.CONTAINER_REGISTRY_SERVER }}/${{ github.actor }}/${{ env.PACKAGE_NAME }}:${{ github.sha }} \ | ||
</pre></div> | ||
</div> |
1 change: 1 addition & 0 deletions
1
...ainerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry1.snippet
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 @@ | ||
dotnet new blazor --empty -o AzureContainerAppTest |
1 change: 1 addition & 0 deletions
1
...inerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry10.snippet
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 @@ | ||
az containerapp registry set --name azurecontainerapptest3 --resource-group testingRG --server ghcr.io --username tesar-tech --password ghp_yourpat |
25 changes: 25 additions & 0 deletions
25
...ainerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry2.snippet
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,25 @@ | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base | ||
USER app | ||
WORKDIR /app | ||
EXPOSE 8080 | ||
|
||
# This stage is used to build the service project | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
ARG BUILD_CONFIGURATION=Release | ||
WORKDIR /src | ||
COPY ["AzureContainerAppTest.csproj", "."] | ||
RUN dotnet restore "./AzureContainerAppTest.csproj" | ||
COPY . . | ||
WORKDIR "/src/." | ||
RUN dotnet build "./AzureContainerAppTest.csproj" -c $BUILD_CONFIGURATION -o /app/build | ||
|
||
# This stage is used to publish the service project to be copied to the final stage | ||
FROM build AS publish | ||
ARG BUILD_CONFIGURATION=Release | ||
RUN dotnet publish "./AzureContainerAppTest.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false | ||
|
||
# This stage is used in production or when running from VS in regular mode (Default when not using the Debug configuration) | ||
FROM base AS final | ||
WORKDIR /app | ||
COPY --from=publish /app/publish . | ||
ENTRYPOINT ["dotnet", "AzureContainerAppTest.dll"] |
62 changes: 62 additions & 0 deletions
62
...ainerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry3.snippet
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,62 @@ | ||
name: Build and deploy .NET application to Azure Container App using GHCR | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
CONTAINER_APP_NAME: azurecontainerapptest3 # name we set up in azure portal | ||
RESOURCE_GROUP: testingRG # azure resource group | ||
CONTAINER_REGISTRY_SERVER: ghcr.io # using github container registry | ||
DOCKER_FILE_PATH: ./Dockerfile # where our docker file is located | ||
PACKAGE_NAME: azurecontainerapptest/containertest #package name on ghcr.io. | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write #need to setup the permission to create packages | ||
contents: read | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.CONTAINER_REGISTRY_SERVER }} | ||
username: ${{ github.actor }} #github username | ||
password: ${{ secrets.GITHUB_TOKEN }} # github token from secrets | ||
|
||
- name: Build and push container image to GHCR | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: ${{ env.CONTAINER_REGISTRY_SERVER }}/${{ github.actor }}/${{ env.PACKAGE_NAME }}:${{ github.sha }} | ||
file: ${{ env.DOCKER_FILE_PATH }} | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
|
||
- name: Azure Login | ||
uses: azure/login@v2 | ||
with: | ||
creds: ${{ secrets.AZURECONTAINERAPPTEST3_SPN }} # Stored secret for Azure login | ||
|
||
- name: Update container app | ||
uses: azure/CLI@v2 | ||
with: | ||
inlineScript: | | ||
az config set extension.use_dynamic_install=yes_without_prompt | ||
|
||
az containerapp update --name ${{ env.CONTAINER_APP_NAME }} \ | ||
--resource-group ${{ env.RESOURCE_GROUP }} \ | ||
--image ${{ env.CONTAINER_REGISTRY_SERVER }}/${{ github.actor }}/${{ env.PACKAGE_NAME }}:${{ github.sha }} \ | ||
|
||
- name: Logout | ||
run: az logout |
2 changes: 2 additions & 0 deletions
2
...ainerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry4.snippet
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,2 @@ | ||
env: | ||
PACKAGE_NAME: azurecontainerapptest/containertest #package name on ghcr.io. |
5 changes: 5 additions & 0 deletions
5
...ainerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry5.snippet
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,5 @@ | ||
uses: docker/build-push-action@v5 | ||
with: | ||
push: true | ||
tags: ${{ env.CONTAINER_REGISTRY_SERVER }}/${{ github.actor }}/${{ env.PACKAGE_NAME }}:${{ github.sha }} | ||
file: ${{ env.DOCKER_FILE_PATH }} |
3 changes: 3 additions & 0 deletions
3
...ainerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry6.snippet
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,3 @@ | ||
uses: azure/login@v2 | ||
with: | ||
creds: ${{ secrets.AZURECONTAINERAPPTEST3_SPN }} |
1 change: 1 addition & 0 deletions
1
...ainerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry7.snippet
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 @@ | ||
az ad sp create-for-rbac --name azurecontainerapptest3 --role contributor --scopes /subscriptions/--your-subscription-id--/resourceGroups/testingRG/providers/Microsoft.App/containerApps/azurecontainerapptest3 /subscriptions/--your-subscription-id--/resourceGroups/testingRG/providers/Microsoft.App/managedEnvironments/AzureContainerAppTest --json-auth |
12 changes: 12 additions & 0 deletions
12
...ainerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry8.snippet
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,12 @@ | ||
{ | ||
"clientId": "******", | ||
"clientSecret": "********", | ||
"subscriptionId": "yourSubscriptionId", | ||
"tenantId": "yourTenantId", | ||
"activeDirectoryEndpointUrl": "https://login.microsoftonline.com", | ||
"resourceManagerEndpointUrl": "https://management.azure.com/", | ||
"activeDirectoryGraphResourceId": "https://graph.windows.net/", | ||
"sqlManagementEndpointUrl": "https://management.core.windows.net:8443/", | ||
"galleryEndpointUrl": "https://gallery.azure.com/", | ||
"managementEndpointUrl": "https://management.core.windows.net/" | ||
} |
8 changes: 8 additions & 0 deletions
8
...ainerRegistry/Examples/BlazorAppAsAnAzureContainerAppWithGitHubContainerRegistry9.snippet
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,8 @@ | ||
uses: azure/CLI@v2 | ||
with: | ||
inlineScript: | | ||
az config set extension.use_dynamic_install=yes_without_prompt | ||
|
||
az containerapp update --name ${{ env.CONTAINER_APP_NAME }} \ | ||
--resource-group ${{ env.RESOURCE_GROUP }} \ | ||
--image ${{ env.CONTAINER_REGISTRY_SERVER }}/${{ github.actor }}/${{ env.PACKAGE_NAME }}:${{ github.sha }} \ |
Oops, something went wrong.