Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Fix missing crds when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
ccremer committed Jul 4, 2022
1 parent a7ae063 commit 4dd0a4f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- make crds
- make release-prepare

builds:
- env:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ run-operator: ## Run in Operator mode against your current kube context
clean: kind-clean ## Cleans local build artifacts
rm -rf docs/node_modules $(docs_out_dir) dist .cache package/*.xpkg
$(DOCKER_CMD) rmi $(CONTAINER_IMG) || true

.PHONY: release-prepare
release-prepare: generate-go ## Prepares artifacts for releases
@cat package/crds/*.yaml | yq > .github/crds.yaml
3 changes: 1 addition & 2 deletions charts/charts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ $(helm_docs_bin):
cd charts && go build -o $@ github.com/norwoodj/helm-docs/cmd/helm-docs

.PHONY: chart-prepare
chart-prepare: generate-go ## Prepare the Helm charts
@cat package/crds/*.yaml | yq > .github/crds.yaml
chart-prepare: release-prepare ## Prepare the Helm charts
@find charts -type f -name Makefile | sed 's|/[^/]*$$||' | xargs -I '%' make -C '%' clean prepare

.PHONY: chart-docs
Expand Down

0 comments on commit 4dd0a4f

Please sign in to comment.