Breaking

Wednesday, June 9, 2021

Azure Pipelines - Pass location of baked manifest files

Inside our CD pipeline, I first want to bake a manifest file through Kustomize(more about Kustomize in a later blog post) and then use the baked manifest to deploy to our AKS cluster.

Both actions are possible through the Kubernetes Manifest task, but I didn’t find immediatelly how I could pass the location of the baked manifest bundle from the bake task to the deployment task.

Here is the original yaml file I created:

The trick is to give the first task a specific name and point to the ‘manifestsBundle’ property through the task name.

Let’s update our yaml file to show this. In the example below I named the bake task ‘bake’ so I can use ‘$(bake.manifestBundle)’ in the second task:

No comments:

Post a Comment