Skip to content

Commit bdbd471

Browse files
FileSync Updates [skip ci]
1 parent 5501abb commit bdbd471

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

update-digests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
json=$(cat VERSION.json)
33
upstream_image=$(jq -re '.upstream_image' <<< "${json}")
44
upstream_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
58
manifest=$(skopeo inspect --raw "docker://${upstream_image}:${upstream_tag}") || exit 1
69
upstream_digest_amd64=$(jq -re '.manifests[] | select (.platform.architecture == "amd64" and .platform.os == "linux").digest' <<< "${manifest}")
710
upstream_digest_arm64=$(jq -re '.manifests[] | select (.platform.architecture == "arm64" and .platform.os == "linux").digest' <<< "${manifest}")
811
jq --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

0 commit comments

Comments
 (0)