-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from mgfritch/updatecli-upstream
Add manifiest to bump to the latest upstream version
- Loading branch information
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |