Skip to content

Commit

Permalink
Add manifiest to bump to the latest upstream version
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Fritch <[email protected]>
  • Loading branch information
mgfritch committed Jun 19, 2024
1 parent e15eaae commit b3f097b
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions updatecli/updatecli.d/update-upstream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
name: "Update upstream version"

sources:
upstream:
name: Get upstream version
kind: githubrelease
spec:
owner: kubernetes-sigs
repository: node-feature-discovery
token: '{{ requiredEnv .github.token }}'
typefilter:
release: true
draft: false
prerelease: false
versionfilter:
kind: latest

targets:
dockerfile:
name: 'Bump Dockerfile to upstream version {{ source "upstream" }}'
kind: dockerfile
scmid: default
sourceid: upstream
spec:
file: "Dockerfile"
instruction:
keyword: "ARG"
matcher: "TAG"

makefile:
name: 'Bump Makefile to upstream version {{ source "upstream" }}'
kind: file
scmid: default
disablesourceinput: true
spec:
file: Makefile
matchpattern: '(?m)^TAG \:\= (.*)'
replacepattern: 'TAG := {{ source "upstream" }}$$(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 to upstream version {{ source "upstream" }}'
kind: github/pullrequest
spec:
automerge: false
labels:
- chore
- skip-changelog
- status/auto-created
scmid: default

0 comments on commit b3f097b

Please sign in to comment.