Skip to content

Commit 78060d2

Browse files
authored
bug: ocp bundle registry fix (#1282)
In case of building with commit hash, use nvstaging
2 parents 46eea71 + b115a2c commit 78060d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ jobs:
123123
password: ${{ secrets.NVCR_TOKEN }}
124124
- name: Lookup image digest
125125
run: |
126-
if echo $VERSION_WITH_PREFIX | grep '-'; then
127-
IMAGE_REGISTRY=$REGISTRY
128-
else
126+
if [[ "$is_push" == "false" && "$VERSION_WITH_PREFIX" != *-* ]]; then
129127
IMAGE_REGISTRY="nvcr.io/nvidia/cloud-native" # GA release
128+
else
129+
IMAGE_REGISTRY=$REGISTRY
130130
fi
131131
network_operator_digest=$(skopeo inspect docker://$IMAGE_REGISTRY/$IMAGE_NAME:$VERSION_WITH_PREFIX | jq -r .Digest)
132132
echo $network_operator_digest | wc -w | grep 1 # verifies value not empty

0 commit comments

Comments
 (0)