diff --git a/.github/workflows/test_e2e.yml b/.github/workflows/test_e2e.yml index 5eefbfb62..698edf891 100644 --- a/.github/workflows/test_e2e.yml +++ b/.github/workflows/test_e2e.yml @@ -86,6 +86,7 @@ jobs: run: | make hmc-chart-release make helm-push + make FORCE_PUSH=true test-hmc-version helm-push controller-e2etest: name: E2E Controller diff --git a/Makefile b/Makefile index c719d5ba6..03ebb75b5 100644 --- a/Makefile +++ b/Makefile @@ -317,7 +317,7 @@ helm-push: helm-package else \ chart_exists=$$($(HELM) pull $$repo_flag $(REGISTRY_REPO) $$chart_name --version $$chart_version --destination /tmp 2>&1 | grep "not found" || true); \ fi; \ - if [ -z "$$chart_exists" ]; then \ + if [ -z "$$chart_exists" ] && [ -z $$FORCE_PUSH ]; then \ echo "Chart $$chart_name version $$chart_version already exists in the repository."; \ else \ if $(REGISTRY_IS_OCI); then \