You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-apps/azure-pipelines.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Publish revisions with Azure Pipelines in Azure Container Apps
3
-
description: Learn to automatically create new revisions in Azure Container Apps using a Azure DevOps pipeline
3
+
description: Learn to automatically create new revisions in Azure Container Apps using an Azure DevOps pipeline
4
4
services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: container-apps
@@ -11,7 +11,7 @@ ms.author: cshoe
11
11
12
12
# Deploy to Azure Container Apps from Azure Pipelines (preview)
13
13
14
-
Azure Container Apps allows you to use Azure Pipelines to publish [revisions](revisions.md) to your container app. As commits are pushed to your Azure DevOps repository, a pipeline is triggered which updates the container image in the container registry. Azure Container Apps creates a new revision based on the updated container image.
14
+
Azure Container Apps allows you to use Azure Pipelines to publish [revisions](revisions.md) to your container app. As commits are pushed to your [Azure DevOps repository](/azure/devops/repos/?view=azure-devops), a pipeline is triggered which updates the container image in the container registry. Azure Container Apps creates a new revision based on the updated container image.
15
15
16
16
The pipeline is triggered by commits to a specific branch in your repository. When creating the pipeline, you decide which branch is the trigger.
17
17
@@ -29,7 +29,7 @@ Here are some common scenarios for using the task. For more information, see the
29
29
30
30
#### Build and deploy to Container Apps
31
31
32
-
The following snippet shows how to build a container image and deploy it to Container Apps.
32
+
The following snippet shows how to build a container image from source code and deploy it to Container Apps.
> If you're building a container image in a separate step, make sure you use a unique tag such as the build ID instead of a stable tag like `latest`. For more information, see [Image tag best practices](../container-registry/container-registry-image-tag-version.md).
64
+
62
65
### Authenticate with Azure Container Registry
63
66
64
67
The Azure Container Apps task needs to authenticate with your Azure Container Registry to push the container image. The container app also needs to authenticate with your Azure Container Registry to pull the container image.
@@ -110,14 +113,14 @@ Before creating a pipeline, the source code for your app must be in a repository
110
113
1. Open a terminal and run the following command to clone the repository:
111
114
112
115
```bash
113
-
git clone <REPOSITORY_URL>
116
+
git clone <REPOSITORY_URL> my-container-app
114
117
```
115
118
116
119
Replace `<REPOSITORY_URL>` with the URL you copied.
117
120
118
121
### Create a container app and configure managed identity
119
122
120
-
Create your container app using the `az containerapp up` command in the following steps. This command will build the container image, create an Azure Container Registry, and store the image in the registry.
123
+
Create your container app using the `az containerapp up` command in the following steps. This command will create Azure resources, build the container image, store the image in a registry, and deploy to a container app.
121
124
122
125
After your app is created, you can add a managed identity to your app and assign the identity the `AcrPull` role to allow the identity to pull images from the registry.
123
126
@@ -190,10 +193,10 @@ To learn more about service connections, see [Connect to Microsoft Azure](/azure
190
193
resourceGroup: 'my-container-app-rg'
191
194
```
192
195
193
-
Replace `<AZURE_SUBSCRIPTION_SERVICE_CONNECTION>` with the name of the Azure DevOps service connection you created in the previous step and `<ACR_NAME>` with the name of your Azure Container Registry.
196
+
Replace `<AZURE_SUBSCRIPTION_SERVICE_CONNECTION>` with the name of the Azure DevOps service connection (`my-subscription-service-connection`) you created in the previous step and `<ACR_NAME>` with the name of your Azure Container Registry.
194
197
195
198
1. Select **Save and run**.
196
199
197
-
An Azure Pipelines run should start to build and deploy your container app. To check its progress, navigate to *Pipelines* and select the run.
200
+
An Azure Pipelines run should start to build and deploy your container app. To check its progress, navigate to *Pipelines* and select the run. During the first pipeline run, you may be prompted to authorize the pipeline to use your service connection.
198
201
199
202
To deploy a new revision of your app, push a new commit to the *main* branch.
Copy file name to clipboardExpand all lines: articles/container-apps/github-actions.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Azure Container Apps allows you to use GitHub Actions to publish [revisions](rev
15
15
16
16
:::image type="content" source="media/github-actions/azure-container-apps-github-actions.png" alt-text="Changes to a GitHub repo trigger an action to create a new revision.":::
17
17
18
-
The GitHub Actions workflow is triggered by commits to a specific branch in your repository. When creating the workflow, you decide which branch triggers the action.
18
+
The GitHub Actions workflow is triggered by commits to a specific branch in your repository. When creating the workflow, you decide which branch triggers it.
19
19
20
20
This article shows you how to create your own workflow that you can fully customize. To generate a starter GitHub Actions workflow with Azure CLI, see [Generate GitHub Actions workflow with Azure CLI](github-actions-cli.md).
21
21
@@ -33,7 +33,7 @@ Here are some common scenarios for using the action. For more information, see t
33
33
34
34
#### Build and deploy to Container Apps
35
35
36
-
The following snippet shows how to build a container image and deploy it to Container Apps.
36
+
The following snippet shows how to build a container image from source code and deploy it to Container Apps.
> If you're building a container image in a separate step, make sure you use a unique tag such as the commit SHA instead of a stable tag like `latest`. For more information, see [Image tag best practices](../container-registry/container-registry-image-tag-version.md).
80
+
78
81
### Authenticate with Azure Container Registry
79
82
80
83
The Azure Container Apps action needs to authenticate with your Azure Container Registry to push the container image. The container app also needs to authenticate with your Azure Container Registry to pull the container image.
@@ -131,7 +134,7 @@ Before creating a workflow, the source code for your app must be in a GitHub rep
131
134
132
135
### Create a container app with managed identity enabled
133
136
134
-
Create your container app using the `az containerapp up` command in the following steps. This command will build the container image, create an Azure Container Registry, and store the image in the registry.
137
+
Create your container app using the `az containerapp up` command in the following steps. This command will create Azure resources, build the container image, store the image in a registry, and deploy to a container app.
135
138
136
139
After you create your app, you can add a managed identity to the app and assign the identity the `AcrPull` role to allow the identity to pull images from the registry.
0 commit comments