Skip to content

Commit 0d0fe77

Browse files
authored
fix: ci update repository for GA (#1526)
Make sure the values.yaml point to the right repositories
2 parents 6037c20 + 00025d5 commit 0d0fe77

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@ jobs:
7777
if: github.ref_type == 'tag'
7878
run: |
7979
git_tag=${{ github.ref_name }}
80+
81+
# If this is a GA release (no hyphen in tag), update necessary files
82+
if ! echo $git_tag | grep -q "-"; then
83+
# Update files for GA release
84+
echo "Updating files for GA release $git_tag"
85+
yq -i '.NetworkOperator.repository = "nvcr.io/nvidia/cloud-native"' hack/release.yaml
86+
yq -i '.SriovNetworkOperator.repository = "nvcr.io/nvidia/mellanox"' hack/release.yaml
87+
yq -i '.SriovNetworkOperatorWebhook.repository = "nvcr.io/nvidia/mellanox"' hack/release.yaml
88+
yq -i '.SriovConfigDaemon.repository = "nvcr.io/nvidia/mellanox"' hack/release.yaml
89+
make release-build
90+
fi
91+
8092
APP_VERSION=$git_tag VERSION=${git_tag:1} make chart-build chart-push # VERSION as 'v' prefix removed
8193
8294
ocp-bundle:

0 commit comments

Comments
 (0)