Skip to content

Commit 2411206

Browse files
Shiva Kumarshivakunv
authored andcommitted
Tag git commit sha with bundle image
Signed-off-by: Shiva Kumar (SW-CLOUD) <[email protected]>
1 parent f2f01a9 commit 2411206

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,12 @@ bundle: manifests install-tools
133133
update-bundle-csv:
134134
@echo "Updating GPU operator image in $(BUNDLE_CSV_FILE) to $(OPERATOR_IMAGE_TAG)"
135135
@sed -i -e 's|gpu-operator:[^ " ]*|$(OPERATOR_IMAGE_TAG)|g' $(BUNDLE_CSV_FILE)
136-
@echo "Check if $(BUNDLE_CSV_FILE) is updated"
137-
@cat $(BUNDLE_CSV_FILE)
138136
@echo "Bundle CSV updated successfully"
139137

140138
# Build the bundle image.
141139
build-bundle-image: update-bundle-csv
142-
@git diff --exit-code -- $(BUNDLE_CSV_FILE)
143-
@if [ $$? -ne 0 ]; then \
144-
echo "Bundle CSV is not updated"; \
145-
exit 1; \
146-
fi
140+
@echo "Checking if $(BUNDLE_CSV_FILE) is updated"
141+
@cat $(BUNDLE_CSV_FILE)
147142
@echo "Bundle CSV is updated"
148143
$(DOCKER) build \
149144
--build-arg DEFAULT_CHANNEL=$(DEFAULT_CHANNEL) \

0 commit comments

Comments
 (0)