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 dffb00d commit 15ac52bCopy full SHA for 15ac52b
.github/workflows/external_trigger.yml
@@ -43,8 +43,12 @@ jobs:
43
| jq -r '.config.digest')
44
image_info=$(curl -sL \
45
--header "Authorization: Bearer ${token}" \
46
- "https://ghcr.io/v2/${image}/blobs/${digest}" \
47
- | jq -r '.container_config')
+ "https://ghcr.io/v2/${image}/blobs/${digest}")
+ if [[ $(echo $image_info | jq -r '.container_config') == "null" ]]; then
48
+ image_info=$(echo $image_info | jq -r '.config')
49
+ else
50
+ image_info=$(echo $image_info | jq -r '.container_config')
51
+ fi
52
IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}')
53
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
54
if [ -z "${IMAGE_VERSION}" ]; then
0 commit comments