Merge pull request #682 from influxdata/fix/add-images-toplevel-to-deploy-tags

fix: add Images toplevel object to JSON in get-deploy-tags.sh
pull/24376/head
Dom 2021-01-21 13:17:20 +00:00 committed by GitHub
commit 0dae62d023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -38,9 +38,11 @@ jq --null-input --sort-keys \
--arg imgPrefix "${DOCKER_IMAGE}" \
--arg appKey "$APP_NAME" \
'$tagDigest | split(" ") as $td | {
($appKey): {
Tag: ($imgPrefix + ":" + $td[0]),
Digest: ($imgPrefix + "@" + $td[1]),
Images: {
($appKey): {
Tag: ($imgPrefix + ":" + $td[0]),
Digest: ($imgPrefix + "@" + $td[1]),
},
},
PublishedAt: (now | todateiso8601)
}'