Skip to content

Commit

Permalink
Merge pull request #20 from manuelbuil/updateCLI
Browse files Browse the repository at this point in the history
Use updatecli to update the version
  • Loading branch information
manuelbuil authored Feb 5, 2024
2 parents fa515c0 + 5b8b545 commit 4b55041
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
63 changes: 63 additions & 0 deletions updatecli/updatecli.d/updatewhereabouts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
name: "Update whereabouts version"

sources:
whereabouts:
name: Get whereabouts version
kind: githubrelease
spec:
owner: k8snetworkplumbingwg
repository: whereabouts
token: '{{ requiredEnv .github.token }}'
typefilter:
release: true
draft: false
prerelease: false
versionfilter:
kind: latest

targets:
dockerfile:
name: "Bump to latest whereabouts version in Dockerfile"
kind: dockerfile
scmid: default
sourceid: whereabouts
spec:
file: "Dockerfile"
instruction:
keyword: "ARG"
matcher: "TAG"

makefile:
name: "Bump to latest whereabouts version in Makefile"
kind: file
scmid: default
disablesourceinput: true
spec:
file: Makefile
matchpattern: '(?m)^TAG \?\= (.*)'
replacepattern: 'TAG ?= {{ source "whereabouts" }}$$(BUILD_META)'

scms:
default:
kind: github
spec:
token: '{{ requiredEnv .github.token }}'
username: '{{ requiredEnv .github.username }}'
user: '{{ .github.user }}'
email: '{{ .github.email }}'
owner: '{{ .github.owner }}'
repository: '{{ .github.repository }}'
branch: '{{ .github.branch }}'

actions:
default:
title: 'Bump whereabouts version to {{ source "whereabouts" }}'
kind: github/pullrequest
spec:
automerge: false
labels:
- chore
- skip-changelog
- status/auto-created
scmid: default
3 changes: 3 additions & 0 deletions updatecli/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ github:
email: "41898282+github-actions[bot]@users.noreply.github.com"
username: "UPDATECLI_GITHUB_ACTOR"
token: "UPDATECLI_GITHUB_TOKEN"
repository: "image-build-multus"
branch: "main"
owner: "rancher"

0 comments on commit 4b55041

Please sign in to comment.