Skip to content

Commit

Permalink
chore(updatecli): add manifest for tools/hadolint & tools/shellcheck (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve committed Apr 24, 2024
1 parent bed10d6 commit a04c1f4
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
49 changes: 49 additions & 0 deletions updatecli/updatecli.d/hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Bump hadolint version

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

sources:
lastReleaseVersion:
kind: githubrelease
name: Get the latest hadolint release version
spec:
owner: "hadolint"
repository: "hadolint"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: semver
transformers:
- trimprefix: v

targets:
updateVersion:
name: "Update the `hadolint` version in the tools/hadolint script"
sourceid: lastReleaseVersion
kind: file
spec:
file: "tools/hadolint"
matchpattern: "ghcr.io/hadolint/hadolint:v(.*)-debian"
content: 'ghcr.io/hadolint/hadolint:v{{ source `lastReleaseVersion` }}-debian'
scmid: default

actions:
default:
kind: github/pullrequest
title: Bump `hadolint` version to {{ source "lastReleaseVersion" }}
scmid: default
spec:
labels:
- dependencies
- hadolint
49 changes: 49 additions & 0 deletions updatecli/updatecli.d/shellcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Bump shellcheck version

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

sources:
lastReleaseVersion:
kind: githubrelease
name: Get the latest shellcheck release version
spec:
owner: "koalaman"
repository: "shellcheck"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: semver
transformers:
- trimprefix: v

targets:
updateVersion:
name: "Update the `shellcheck` version in the tools/shellcheck script"
sourceid: lastReleaseVersion
kind: file
spec:
file: "tools/shellcheck"
matchpattern: "koalaman/shellcheck:v(.*) "
content: 'koalaman/shellcheck:v{{ source `lastReleaseVersion` }} '
scmid: default

actions:
default:
kind: github/pullrequest
title: Bump `shellcheck` version to {{ source "lastReleaseVersion" }}
scmid: default
spec:
labels:
- dependencies
- shellcheck

0 comments on commit a04c1f4

Please sign in to comment.