Skip to content

Commit da23c6f

Browse files
authored
Add environment variable coverage to build step
Users will need to add pipeline variables during the build module image step if they have any env variables in the module.json file, which the sample project does have.
1 parent 014e916 commit da23c6f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ In this section, you create a new build pipeline. Configure the pipeline to run
9090
* **Default platform**: Select the appropriate platform for your modules based on your target IoT Edge device.
9191
* **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**.
9292

93+
These configurations use the image repository and tag in the `module.json` file to name and tag the module image. The **Build module images** also helps replace the variables with the exact value you defined in the `module.json` file. In VS/VS Code, you are specifying the actual value in a `.env` file. In Azure Pipelines, you set the value in the Pipeline Variables tab. Move to Variables tab and configure the Name and Value as following.
94+
95+
* **ACR_ADDRESS**: Your Azure Container Registry address.
96+
97+
If you have other variables in your project, you can specify the name and value in this tab. The **Build module images** can only recognize the variables are in `${VARIABLE}` flavor, make sure you are using this in your `**/module.json` files.
98+
9399
7. Select the second **Azure IoT Edge** task to edit it. This task pushes all module images to the container registry that you select.
94100

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

0 commit comments

Comments
 (0)