ClusterAPI.imageBuilder/packer/azure/.pipelines/vhd-publishing-info.yaml
Danny Bessems f2b0a5e7c7
Some checks failed
continuous-integration/drone Build is failing
Test dependencies
2023-02-22 21:24:42 +01:00

20 lines
785 B
YAML

steps:
- script: |
VHD_BASE_URL="$(cat packer/azure/vhd-base-url.out)"
VHD_URL="$(cat packer/azure/vhd-url.out)"
STORAGE_ACCOUNT_NAME="$(cat packer/azure/storage-account-name.out)"
RESOURCE_GROUP_NAME="$(cat packer/azure/resource-group-name.out)"
TAGS="$(cat packer/azure/tags.out)"
cat <<EOF > packer/azure/vhd-publishing-info.json
{
"vhd_base_url": "${VHD_BASE_URL}",
"vhd_url": "${VHD_URL}",
"storage_account_name": "${STORAGE_ACCOUNT_NAME}",
"resource_group_name": "${RESOURCE_GROUP_NAME}",
"tags": "${TAGS}"
}
EOF
displayName: Generating publishing info for VHD
workingDirectory: '$(system.defaultWorkingDirectory)/images/capi'
condition: eq(variables.CLEANUP, 'False')