Skip to content

Commit 5962b37

Browse files
authored
Fail CI if bundle.Dockerfile is not the same as generated one (#735)
Signed-off-by: Pavol Loffay <[email protected]>
1 parent 373fe17 commit 5962b37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ ensure-generate-is-noop: set-image-controller generate bundle
6363
@git restore config/manager/kustomization.yaml
6464
@git diff -s --exit-code api/v1alpha1/zz_generated.*.go || (echo "Build failed: a model has been changed but the generated resources aren't up to date. Run 'make generate' and update your PR." && exit 1)
6565
@git diff -s --exit-code bundle config || (echo "Build failed: the bundle, config files has been changed but the generated bundle, config files aren't up to date. Run 'make bundle' and update your PR." && git diff && exit 1)
66+
@git diff -s --exit-code bundle.Dockerfile || (echo "Build failed: the bundle.Dockerfile file has been changed. The file should be the same as generated one. Run 'make bundle' and update your PR." && git diff && exit 1)
6667
@git diff -s --exit-code docs/api.md || (echo "Build failed: the api.md file has been changed but the generated api.md file isn't up to date. Run 'make api-docs' and update your PR." && git diff && exit 1)
6768

6869
.PHONY: all

0 commit comments

Comments
 (0)