Skip to content

Commit

Permalink
Scan OpenShift image after pushing to Red Hat
Browse files Browse the repository at this point in the history
  • Loading branch information
szh committed Jul 6, 2022
1 parent fdf8e84 commit eb9bdde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/publish
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ FULL_VERSION_TAG="$(full_version_tag)"
readonly VERSION
readonly FULL_VERSION_TAG
readonly REDHAT_IMAGE="scan.connect.redhat.com/ospid-18d9f51d-9c0c-4031-9f9e-ef08aa2ff409/secretless-broker"
readonly REDHAT_CERT_PID="5e621f6502235d3f505f6093"
readonly REDHAT_LOCAL_IMAGE="secretless-broker-redhat"
readonly IMAGES=(
"secretless-broker"
Expand Down Expand Up @@ -133,6 +134,9 @@ if [[ ${PROMOTE} = true ]]; then
echo 'RedHat push FAILED! (maybe the image was pushed already?)'
exit 0
fi

# scan image with preflight tool
scan_redhat_image "${REDHAT_IMAGE}:${REMOTE_TAG}" "${REDHAT_CERT_PID}"
else
echo 'Failed to log in to scan.connect.redhat.com'
exit 1
Expand Down

0 comments on commit eb9bdde

Please sign in to comment.