Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use updatecli to update the version #20

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"