Skip to content

Commit

Permalink
update a quay API call to use onlyActiveTags instead of limit
Browse files Browse the repository at this point in the history
- I think this is just a better way of running the query since it
  purposefully avoids the possibility of returning a stale (inactive)
  tag
  • Loading branch information
k-rister committed Jul 12, 2024
1 parent 4a28faa commit a26ba36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rickshaw-run
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ sub source_container_image {
my $query_cmd = 'curl --silent' .
' -X GET -H "Authorization: Bearer ' . $quay_refresh_expiration_token . '"' .
' "' . $quay_refresh_expiration_api_url .
'/tag/?limit=1&specificTag=' . $workshop_args[$x]{'tag'} . '"';
'/tag/?onlyActiveTags=true&specificTag=' . $workshop_args[$x]{'tag'} . '"';

($query_cmd, my $query_status, my $query_rc) = run_cmd($query_cmd);
chomp($query_status);
Expand Down

0 comments on commit a26ba36

Please sign in to comment.