File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 22json=$( cat VERSION.json)
33upstream_image=$( jq -re ' .upstream_image' <<< " ${json}" )
44upstream_tag=$( jq -re ' .upstream_tag' <<< " ${json}" )
5+ if [[ ${upstream_image} == * " hotio/base" ]]; then
6+ upstream_tag=" ${upstream_tag} -$( curl -fsSL " https://raw.githubusercontent.com${upstream_image// ghcr.io/ } /${upstream_tag} /VERSION.json" | jq -re ' .version' ) " || exit 1
7+ fi
58manifest=$( skopeo inspect --raw " docker://${upstream_image} :${upstream_tag} " ) || exit 1
69upstream_digest_amd64=$( jq -re ' .manifests[] | select (.platform.architecture == "amd64" and .platform.os == "linux").digest' <<< " ${manifest}" )
710upstream_digest_arm64=$( jq -re ' .manifests[] | select (.platform.architecture == "arm64" and .platform.os == "linux").digest' <<< " ${manifest}" )
811jq --sort-keys \
912 --arg upstream_digest_amd64 " ${upstream_digest_amd64} " \
1013 --arg upstream_digest_arm64 " ${upstream_digest_arm64} " \
1114 ' .upstream_digest_amd64 = $upstream_digest_amd64 | .upstream_digest_arm64 = $upstream_digest_arm64' <<< " ${json}" | tee VERSION.json
15+
16+ [[ -f update-self-version.sh ]] && bash ./update-self-version.sh
You can’t perform that action at this time.
0 commit comments