From 2b083e6cb2ad11d3c53b0198e3895d3743345623 Mon Sep 17 00:00:00 2001 From: Fred Rolland Date: Tue, 21 Jan 2025 15:42:41 +0200 Subject: [PATCH] bug: ocp bundle registry fix In case of building with commit hash, use nvstaging Signed-off-by: Fred Rolland --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ec34735b..7b1af592 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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" == "true" && "$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