Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
feat(ci): extend renovate-fix make targets (#1974)
Browse files Browse the repository at this point in the history
Signed-off-by: András Jáky <[email protected]>
  • Loading branch information
akijakya authored Aug 6, 2024
1 parent 62d03f2 commit fe422da
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ BICEP_DIR := $(INSTALLATION_DIR)/azure
CFN_DIR := $(INSTALLATION_DIR)/aws
DOCKER_COMPOSE_DIR := $(INSTALLATION_DIR)/docker
GCP_DM_DIR := $(INSTALLATION_DIR)/gcp/dm
API_DIR := $(ROOT_DIR)/api
UI_DIR := $(ROOT_DIR)/ui

####
## Load additional makefiles
Expand Down Expand Up @@ -586,6 +588,8 @@ multimod-prerelease: bin/multimod

##@ Renovate

.PHONY: renovate-fix
renovate-fix: renovate-fix-gomod renovate-fix-helm-docs renovate-fix-bicep renovate-fix-api renovate-fix-format ## Fix all Renovate issues, recommended to run it with the "-i" flag

.PHONY: renovate-fix-gomod
renovate-fix-gomod: gomod-tidy ## Fix go.mod files after bumping Go dependency versions
Expand All @@ -597,10 +601,23 @@ renovate-fix-gomod: gomod-tidy ## Fix go.mod files after bumping Go dependency v
renovate-fix-helm-docs: gen-helm-docs ## Fix Helm Chart documentation after version update
$(info --- Fix Helm Chart documentation after version update)
git add ':$(subst $(ROOT_DIR),,$(HELM_CHART_DIR))' \
&& git commit -m "docs: update helm docs"
&& git commit -m "docs: update Helm docs"

.PHONY: renovate-fix-bicep
renovate-fix-bicep: gen-bicep ## Fix Azure Bicep files after version update
$(info --- Fix Azure Bicep files after version update)
git add ':$(subst $(ROOT_DIR),,$(BICEP_DIR))' \
&& git commit -m "fix: generate bicep template"
&& git commit -m "fix: generate Bicep template"

.PHONY: renovate-fix-api
renovate-fix-api: gen-api-go gen-api-js ## Fix generated API code after version update
$(info --- Generate API code after version update)
git add ':$(subst $(ROOT_DIR),,$(API_DIR))' \
git add ':$(subst $(ROOT_DIR),,$(UI_DIR))' \
&& git commit -m "fix: generate API code"

.PHONY: renovate-fix-format
renovate-fix-format: format ## Format files after version update
$(info --- Run formatters after version update)
git add ':$(subst $(ROOT_DIR),,$(UI_DIR))' \
&& git commit -m "style: format code"

0 comments on commit fe422da

Please sign in to comment.