Skip to content

Commit 8c9dfd0

Browse files
committed
Use stable_online_version instead of stableOnlineVersionShort
This hopefully causes the stable tag to not be removed anymore for an unknown reason.
1 parent 867635d commit 8c9dfd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ rm -f -- "$tmpfile"
7373

7474
# Update tag by stable
7575
cp buildinfo.json "$tmpfile"
76-
if [[ $stableOnlineVersionShort == "$stableCurrentVersionShort" ]]; then
77-
jq --arg stable_current_version "$stable_current_version" --arg stable_online_version "$stable_online_version" --arg sha256 "$stable_sha256" 'with_entries(if .key == $stable_current_version then .key |= $stable_online_version | .value.sha256 |= $sha256 | .value.tags |= . - [$stable_current_version] + [$stable_online_version] else . end)' "$tmpfile" > buildinfo.json
76+
if [[ "$stable_online_version" == "$stable_current_version" ]]; then
77+
jq --arg stable_current_version "$stable_current_version" --arg stable_online_version "$stable_online_version" --arg sha256 "$stable_sha256" 'with_entries(if .key == $stable_current_version then .key |= $stable_online_version | .value.sha256 |= $sha256 | .value.tags |= . - [$stable_current_version] + [$stable_online_version, "stable"] else . end)' "$tmpfile" > buildinfo.json
7878
else
7979
jq --arg stable_current_version "$stable_current_version" --arg stable_online_version "$stable_online_version" --arg sha256 "$stable_sha256" --arg stableOnlineVersionShort "$stableOnlineVersionShort" --arg stableOnlineVersionMajor "$stableOnlineVersionMajor" 'with_entries(if .key == $stable_current_version then .value.tags |= . - ["latest","stable",$stableOnlineVersionMajor] else . end) | to_entries | . + [{ key: $stable_online_version, value: { sha256: $sha256, tags: ["latest","stable",("stable-" + $stable_online_version),$stableOnlineVersionMajor,$stableOnlineVersionShort,$stable_online_version]}}] | from_entries' "$tmpfile" > buildinfo.json
8080
fi

0 commit comments

Comments
 (0)