Skip to content

Commit

Permalink
Add provider version and renovate config for it
Browse files Browse the repository at this point in the history
So it gets autoupdated

Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Feb 3, 2025
1 parent 6ac4c8a commit d1de832
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/values/framework.go → pkg/values/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ var (
// gitCommit is the git sha1 + dirty if build from a dirty git.
gitCommit = "none"
// This gets auto updated by renovate on github
// renovate: datasource=docker depName=quay.io/kairos/framework versioning=semver
// renovate: datasource=docker depName=quay.io/kairos/framework
frameWorkVersion = "v2.15.11"
// renovate: datasource=docker depName=quay.io/kairos/packages
providerPackage = "quay.io/kairos/packages:provider-kairos-system-2.9.1"
)

func GetFrameworkVersion() string {
Expand All @@ -29,7 +31,7 @@ type BuildInfo struct {
GoVersion string `json:"go_version,omitempty"`
}

// Get returns build info.
// GetFullVersion returns the full build info.
func GetFullVersion() BuildInfo {
v := BuildInfo{
Version: GetVersion(),
Expand Down
11 changes: 11 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@
"depNameTemplate": "quay.io/kairos/framework",
"datasourceTemplate": "docker",
"versioningTemplate": "semver"
},
{
"customType": "regex",
"fileMatch": [
"^pkg/values/framework\\.go$"
],
"matchStrings": [
"providerPackage\\s*=\\s*\"(?<depName>quay\\.io/kairos/packages):(?<currentValue>provider-kairos-system-[^\"]+)\""
],
"datasourceTemplate": "docker",
"versioningTemplate": "regex:^provider-kairos-system-(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)$"
}
]
}

0 comments on commit d1de832

Please sign in to comment.