Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

ceph-build-config.sh: filter out deleted tags #2245

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/ceph-build-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ function get_tags_matching () {
while response="$(curl --silent --fail --list-only --location \
"${tag_list_url}&page=${page}")"; do
local matching_tags ; matching_tags="$(echo "${response}" | \
jq -r ".tags[] | select(.name | match(\"${version_tag}\")) | .name")"
jq -r ".tags[] | select(.end_ts == null) | select(.name | match(\"${version_tag}\")) | .name")"
# jq: From the results of the curl, select all images with a name matching the matcher, and then
# output the name. Exits success w/ empty string if no matches found.
if [ -n "${matching_tags}" ]; then
Expand Down
Loading