Skip to content

Commit c5a6eda

Browse files
authored
Merge pull request #46092 from kln4dt/patch-1
Add environment variable coverage to build step
2 parents c6a6040 + ccd79d0 commit c5a6eda

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

articles/iot-edge/how-to-ci-cd.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ In this section, you create a new build pipeline. Configure the pipeline to run
4949
>
5050
>For more information, see [Create a build pipeline](https://docs.microsoft.com/azure/devops/pipelines/create-first-pipeline).
5151
52-
1. Sign into your Azure DevOps organization (**https:\//dev.azure.com/{your organization}/**) and open the project that contains your IoT Edge solution repository.
52+
1. Sign in to your Azure DevOps organization (**https:\//dev.azure.com/{your organization}/**) and open the project that contains your IoT Edge solution repository.
5353

5454
For this article, we created a repository called **IoTEdgeRepo**. That repository contains **IoTEdgeSolution** which has the code for a module named **filtermodule**.
5555

@@ -95,6 +95,13 @@ In this section, you create a new build pipeline. Configure the pipeline to run
9595
* **Default platform**: Select the appropriate platform for your modules based on your target IoT Edge device.
9696
* **Output variables**: The output variables include a reference name that you can use to configure the file path where your deployment.json file will be generated. Set the reference name to something memorable like **edge**.
9797

98+
99+
These configurations use the image repository and tag that are defined in the `module.json` file to name and tag the module image. **Build module images** also helps replace the variables with the exact value you define in the `module.json` file. In Visual Studio or Visual Studio Code, you are specifying the actual value in a `.env` file. In Azure Pipelines, you set the value on the **Pipeline Variables** tab. Select the **Variables** tab and configure the name and value as following:
100+
101+
* **ACR_ADDRESS**: Your Azure Container Registry address.
102+
103+
If you have other variables in your project, you can specify the name and value on this tab. **Build module images** recognizes only variables that are in `${VARIABLE}` format. Make sure you use this format in your `**/module.json` files.
104+
98105
7. Select the second **Azure IoT Edge** task to edit it. This task pushes all module images to the container registry that you select.
99106

100107
* **Display name**: The display name is automatically updated when the action field changes.

0 commit comments

Comments
 (0)