From e4e9f050df2ae57dcb7b72f14a9525fc7451e9ab Mon Sep 17 00:00:00 2001 From: bakito Date: Thu, 3 Oct 2024 18:30:28 +0200 Subject: [PATCH] track AdGuardHome with renovate --- .toolbox.mk | 12 +++++++++--- Makefile | 7 +++++-- renovate.json | 13 ++++++++++++- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/.toolbox.mk b/.toolbox.mk index 7dcfd906..11fe5cb7 100644 --- a/.toolbox.mk +++ b/.toolbox.mk @@ -1,4 +1,6 @@ ## toolbox - start +## Generated with https://github.com/bakito/toolbox + ## Current working directory TB_LOCALDIR ?= $(shell which cygpath > /dev/null 2>&1 && cygpath -m $$(pwd) || pwd) ## Location to install dependencies to @@ -59,9 +61,9 @@ tb.semver: $(TB_SEMVER) ## Download semver locally if necessary. $(TB_SEMVER): $(TB_LOCALBIN) test -s $(TB_LOCALBIN)/semver || GOBIN=$(TB_LOCALBIN) go install github.com/bakito/semver@$(TB_SEMVER_VERSION) -## Update Tools -.PHONY: tb.update -tb.update: +## Reset Tools +.PHONY: tb.reset +tb.reset: @rm -f \ $(TB_LOCALBIN)/deepcopy-gen \ $(TB_LOCALBIN)/ginkgo \ @@ -70,6 +72,10 @@ tb.update: $(TB_LOCALBIN)/mockgen \ $(TB_LOCALBIN)/oapi-codegen \ $(TB_LOCALBIN)/semver + +## Update Tools +.PHONY: tb.update +tb.update: tb.reset toolbox makefile --renovate -f $(TB_LOCALDIR)/Makefile \ k8s.io/code-generator/cmd/deepcopy-gen@github.com/kubernetes/code-generator \ github.com/golangci/golangci-lint/cmd/golangci-lint \ diff --git a/Makefile b/Makefile index 586b5e4f..e4aac4f3 100644 --- a/Makefile +++ b/Makefile @@ -64,12 +64,15 @@ kind-create: kind-test: @./testdata/e2e/bin/install-chart.sh +# renovate: packageName=AdguardTeam/AdGuardHome +ADGUARD_HOME_VERSION ?= v0.107.52 + model: oapi-codegen @mkdir -p tmp - go run openapi/main.go v0.107.52 + go run openapi/main.go $(ADGUARD_HOME_VERSION) $(OAPI_CODEGEN) -package model -generate types,client -config .oapi-codegen.yaml tmp/schema.yaml > pkg/client/model/model_generated.go model-diff: - go run openapi/main.go v0.107.52 + go run openapi/main.go $(ADGUARD_HOME_VERSION) go run openapi/main.go diff tmp/schema.yaml tmp/schema-master.yaml diff --git a/renovate.json b/renovate.json index ad6aea89..43e1f002 100644 --- a/renovate.json +++ b/renovate.json @@ -4,7 +4,18 @@ { "customType": "regex", "datasourceTemplate": "go", - "description": "Update toolbox tools in Makefile", + "description": "Update toolbox tools in .toolbox.mk", + "fileMatch": [ + "^\\.toolbox\\.mk$" + ], + "matchStrings": [ + "# renovate: packageName=(?.+?)\\s+.+?_VERSION \\?= (?.+?)\\s" + ] + }, + { + "customType": "regex", + "datasourceTemplate": "github-releases", + "description": "Update github _VERSION Makefile", "fileMatch": [ "^Makefile$" ],