Skip to content

Commit

Permalink
track AdGuardHome with renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Oct 3, 2024
1 parent 638b9b9 commit e4e9f05
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .toolbox.mk
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 \
Expand All @@ -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/[email protected]/kubernetes/code-generator \
github.com/golangci/golangci-lint/cmd/golangci-lint \
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 12 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -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=(?<packageName>.+?)\\s+.+?_VERSION \\?= (?<currentValue>.+?)\\s"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-releases",
"description": "Update github _VERSION Makefile",
"fileMatch": [
"^Makefile$"
],
Expand Down

0 comments on commit e4e9f05

Please sign in to comment.