Do you guys know a way to split nested parameters such as "myubuntu:1" into $image and $tag so i can pass it on my yaml templates?
parameters:
- name: base_images
type: object
default:
public:
amazon1: "amazonlinux:1"
amazon2: "amazonlinux:2"
private:
ubuntu1: "myubuntu:1.2"
ubuntu2: "myubuntu:2.0"
steps:
- ${{ each version in parameters.base_images.public }}:
- template: <path to my template>...
parameters:
image_type: ${{ value }} # public
image_name: ${{ value }} # amazonlinux
image_tag: ${{ value }} # 1
i tried several methods on splitting the value but none of them works and im running out of ideas.