Skip to content

Commit

Permalink
bug: ocp bundle registry fix
Browse files Browse the repository at this point in the history
In case of building with commit hash, use nvstaging

Signed-off-by: Fred Rolland <[email protected]>
  • Loading branch information
rollandf committed Jan 21, 2025
1 parent 46eea71 commit b115a2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ jobs:
password: ${{ secrets.NVCR_TOKEN }}
- name: Lookup image digest
run: |
if echo $VERSION_WITH_PREFIX | grep '-'; then
IMAGE_REGISTRY=$REGISTRY
else
if [[ "$is_push" == "false" && "$VERSION_WITH_PREFIX" != *-* ]]; then
IMAGE_REGISTRY="nvcr.io/nvidia/cloud-native" # GA release
else
IMAGE_REGISTRY=$REGISTRY
fi
network_operator_digest=$(skopeo inspect docker://$IMAGE_REGISTRY/$IMAGE_NAME:$VERSION_WITH_PREFIX | jq -r .Digest)
echo $network_operator_digest | wc -w | grep 1 # verifies value not empty
Expand Down

0 comments on commit b115a2c

Please sign in to comment.