Skip to content

Commit

Permalink
enhance(ci): keep clone image updated via renovate (#1072)
Browse files Browse the repository at this point in the history
this should help us keep the clone image up-to-date
  • Loading branch information
wass3rw3rk authored Feb 29, 2024
1 parent 99695bf commit 07949d4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,17 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>go-vela/renovate-config"
],
"regexManagers": [
{
"description": "Update docker images in go files",
"fileMatch": [
"^.*\\.go$"
],
"matchStrings": [
"\\/\\/ renovate: image=(?<depName>.*?)\\s+?.*[:|=]\\s+\"(?<currentValue>.*)\"\\,?"
],
"versioningTemplate": "docker"
}
]
}
3 changes: 2 additions & 1 deletion cmd/vela-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ func main() {
EnvVars: []string{"VELA_CLONE_IMAGE"},
Name: "clone-image",
Usage: "the clone image to use for the injected clone step",
Value: "target/vela-git:v0.8.0@sha256:02de004ae9dbf184c70039cb9ce431c31d6e7580eb9e6ec64a97ebf108aa65cb",
// renovate: image=target/vela-git
Value: "target/vela-git:v0.8.0@sha256:02de004ae9dbf184c70039cb9ce431c31d6e7580eb9e6ec64a97ebf108aa65cb",
},
&cli.StringSliceFlag{
EnvVars: []string{"VELA_REPO_ALLOWLIST"},
Expand Down

0 comments on commit 07949d4

Please sign in to comment.