Skip to content

Commit e098d66

Browse files
committed
clean blocking issues
1 parent ea151ae commit e098d66

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/app-service/deploy-container-azure-pipelines.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,28 @@ In this article, we use Azure Pipelines to deploy a Windows container applicatio
1919
- An Azure DevOps organization. [Create one for free](/azure/devops/pipelines/get-started/pipelines-sign-up).
2020
- A working Windows app with Dockerfile hosted on [Azure Repos](https://docs.github.com/get-started/quickstart/create-a-repo).
2121

22-
## 1. Add a Service Connection
22+
## Add a Service Connection
2323
Before you create your pipeline, you should first create your Service Connection since you'll be asked to choose and verify your connection when creating your template. A Service Connection allows you to connect to your registry of choice (ACR or Docker Hub) when using the task templates. When adding a new service connection, choose the Docker Registry option. The following form asks you to choose Docker Hub or Azure Container Registry along with pertaining information. To follow along with this tutorial, use Azure Container Registry. You can create a new Service Connection following the directions [here](https://learn.microsoft.com/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#create-new).
2424

25-
## 2. Secure your secrets
26-
Since we're using sensitive information that you dont want others to access, we use variables to protect our information. Create a variable by following the directions [here](https://learn.microsoft.com/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#secret-variables).
25+
## Secure your secrets
26+
Since we're using sensitive information that you don't want others to access, we use variables to protect our information. Create a variable by following the directions [here](https://learn.microsoft.com/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#secret-variables).
2727

2828
To add a Variable, you click the **Variables** button next to the Save button in the top-right of the editing view for your pipeline. Select the **New Variable** button and enter your information. Add the variables below with your own secrets appropriate from each resource.
2929

30-
- vmImageName: ‘windows-latest
31-
- imageRepository: ‘your-image-repo-name
32-
- dockerfilePath: ‘$(Build.SourcesDirectory)/path/to/Dockerfile
33-
- dockerRegistryServiceConnection: ‘your-service-connection-number
30+
- vmImageName: ‘windows-latest'
31+
- imageRepository: ‘your-image-repo-name'
32+
- dockerfilePath: ‘$(Build.SourcesDirectory)/path/to/Dockerfile'
33+
- dockerRegistryServiceConnection: ‘your-service-connection-number'
3434

35-
## 3. Create a new pipeline
35+
## Create a new pipeline
3636
Once your repository is created with your .NET application and supporting dockerfile, you can create your pipeline following these steps.
3737

3838
1. Navigate to **Pipelines** on the left menu bar and click on the **Create pipeline** button
3939
1. On the next screen, select **Azure Repos Git** as your repository option and select the repository where your code is
4040
1. Under the Configure tab, choose the **Starter Pipeline** option
4141
1. Under the next Review tab, click the **Save** button
4242

43-
## 4. Build and push image to Azure container registry
43+
## Build and push image to Azure container registry
4444
After your pipeline is created and saved, you'll need to edit the pipeline to run the steps for building the container, pushing to a registry, and deploying the image to App Service. To start, navigate to the **Pipelines** menu, choose your pipeline that you created and click the **Edit** button.
4545

4646
First, you need to add the docker task so you can build the image. Add the following code and replace the Dockerfile: app/Dockerfile with the path to your Dockerfile.
@@ -77,7 +77,7 @@ trigger:
7777
$(tag)
7878
```
7979
80-
## 5. Add the App Service deploy task
80+
## Add the App Service deploy task
8181
Next, you need to set up the deploy task. This requires your subscription name, application name, and container registry. Add a new stage to the yaml file by pasting the code below.
8282
8383
```yaml
@@ -113,7 +113,7 @@ Once you have those filled out, click the **Add** button to add the task below:
113113
DockerRepository: 'dotnetframework:12'
114114
```
115115
116-
After youve added the task the pipeline is ready to run. Click the **Validate and save** button and run the pipeline. The pipeline goes through the steps to build and push the Windows container image to Azure Container Registry and deploy the image to App Service.
116+
After you've added the task the pipeline is ready to run. Click the **Validate and save** button and run the pipeline. The pipeline goes through the steps to build and push the Windows container image to Azure Container Registry and deploy the image to App Service.
117117
118118
Below is the example of the full yaml file:
119119

0 commit comments

Comments
 (0)