Skip to content

Commit

Permalink
fix: fic obtaining project by image name (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <[email protected]>
  • Loading branch information
sumo-drosiek authored Jun 24, 2024
1 parent 4a4f768 commit e340cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function check(){
function submit(){
echo "Submitting image for certification, image: ${IMAGE_NAME}"
## Fetch container project id based on directory(image) name
CONTAINER_PROJECT_ID="$(curl -sH "X-API-KEY: ${PYAXIS_API_TOKEN}" "https://catalog.redhat.com/api/containers/v1/product-listings/id/${OPERATOR_PROJECT_ID}/projects/certification" | jq ".data[] | select(.name == \"${NAME}\")._id" --raw-output)"
CONTAINER_PROJECT_ID="$(curl -sH "X-API-KEY: ${PYAXIS_API_TOKEN}" "https://catalog.redhat.com/api/containers/v1/product-listings/id/${OPERATOR_PROJECT_ID}/projects/certification" | jq ".data[] | select(.container.repository_name == \"${NAME}\")._id" --raw-output)"

if [[ -z ${CONTAINER_PROJECT_ID} ]]; then
echo "Missing project for ${IMAGE_NAME}"
Expand Down

0 comments on commit e340cbd

Please sign in to comment.