Skip to content

Commit

Permalink
convert azure image ref to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
msanft committed Nov 9, 2023
1 parent 4876563 commit 4a3164f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/common/fetch-image/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ locals {
fetch_image_command = <<EOT
curl -s https://cdn.confidential.cloud/constellation/v2/${local.image_ref}/image/info.json | \
./yq eval '.list[] | select(.csp == "${var.csp}" and .attestationVariant == "${var.attestation_variant}"${local.region_filter}) | .reference' - | tr -d '\n' > "image.txt"
if [ ${var.csp} == 'azure' ]; then
mv image.txt image.txt.tmp
tr '[:upper:]' '[:lower:]' < image.txt.tmp > image.txt
rm image.txt.tmp
fi
EOT
}

Expand Down

0 comments on commit 4a3164f

Please sign in to comment.