Skip to content

Commit

Permalink
ci(build): query scorecard image tags with registry v2 api
Browse files Browse the repository at this point in the history
Signed-off-by: Thuan Vo <thuan.votann@gmail.com>
  • Loading branch information
tthvo committed Jul 10, 2024
1 parent e10f18d commit 687cd4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
id: check-tag-exists
run: |
EXIST=false
if [ -n "$(podman search --list-tags ${CI_SCORECARD_IMG} --format json | jq --arg TAG ${{ steps.get-image-tag.outputs.tag }} '.[0].Tags[] | select( . == $TAG)')" ]; then
if [ -n "$(curl -Ls https://quay.io/v2/cryostat/cryostat-operator-scorecard/tags/list | jq --arg TAG "${{ steps.get-image-tag.outputs.tag }}" '.tags[] | select( . == $TAG)'" ]; then
EXIST=true
fi
echo "exist=$EXIST" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 687cd4f

Please sign in to comment.