We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fba6b7 commit 68ea6cfCopy full SHA for 68ea6cf
.github/workflows/external_trigger.yml
@@ -48,8 +48,12 @@ jobs:
48
| jq -r '.config.digest')
49
image_info=$(curl -sL \
50
--header "Authorization: Bearer ${token}" \
51
- "https://ghcr.io/v2/${image}/blobs/${digest}" \
52
- | jq -r '.container_config')
+ "https://ghcr.io/v2/${image}/blobs/${digest}")
+ if [[ $(echo $image_info | jq -r '.container_config') == "null" ]]; then
53
+ image_info=$(echo $image_info | jq -r '.config')
54
+ else
55
+ image_info=$(echo $image_info | jq -r '.container_config')
56
+ fi
57
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
58
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
59
if [ -z "${IMAGE_VERSION}" ]; then
0 commit comments