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