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

chore(updatecli): add manifest for helm/helmfile/helmplugins/sops #971

Merged
merged 3 commits into from
Jan 3, 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
56 changes: 56 additions & 0 deletions updatecli/updatecli.d/helm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: Bump helm 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 `helm` release version
spec:
owner: "helm"
repository: "helm"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: semver
transformers:
- trimprefix: v

targets:
updateVersion:
name: "Update the `helm` version in the tools-versions.yml file"
sourceid: lastReleaseVersion
kind: yaml
spec:
file: "provisioning/tools-versions.yml"
key: "$.helm_version"
scmid: default
updatehelmVersionInGoss:
name: Update the `helm` version in the goss test
kind: yaml
spec:
files:
- goss/goss-linux.yaml
key: $.command.helm.stdout[0]
scmid: default

actions:
default:
kind: github/pullrequest
title: Bump helm version to {{ source "lastReleaseVersion" }}
scmid: default
spec:
labels:
- enhancement
- helm
59 changes: 59 additions & 0 deletions updatecli/updatecli.d/helm_diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
name: Bump helm-diff 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 `helm-diff` release version
spec:
owner: "databus23"
repository: "helm-diff"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: semver
transformers:
- trimprefix: v

targets:
updateVersion:
name: "Update the `helm-diff` version in the tools-versions.yml file"
sourceid: lastReleaseVersion
kind: yaml
spec:
file: "provisioning/tools-versions.yml"
key: "$.helm_diff_version"
scmid: default
updatehelmdiffVersionInGoss:
name: Update the `helm-diff` version in the goss test
kind: yaml
spec:
files:
- goss/goss-linux.yaml
key: $.command.helmplugins.stdout[0]
transformers:
- addprefix: "/diff.*"
- addsuffix: "/"
scmid: default

actions:
default:
kind: github/pullrequest
title: Bump helm-diff version to {{ source "lastReleaseVersion" }}
scmid: default
spec:
labels:
- enhancement
- helm-diff
59 changes: 59 additions & 0 deletions updatecli/updatecli.d/helm_git.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
name: Bump helm-git 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 `helm-git` release version
spec:
owner: "aslafy-z"
repository: "helm-git"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: semver
transformers:
- trimprefix: v

targets:
updateVersion:
name: "Update the `helm-git` version in the tools-versions.yml file"
sourceid: lastReleaseVersion
kind: yaml
spec:
file: "provisioning/tools-versions.yml"
key: "$.helm_git_version"
scmid: default
updatehelmdiffVersionInGoss:
name: Update the `helm-git` version in the goss test
kind: yaml
spec:
files:
- goss/goss-linux.yaml
key: $.command.helmplugins.stdout[1]
transformers:
- addprefix: "/helm-git.*"
- addsuffix: "/"
scmid: default

actions:
default:
kind: github/pullrequest
title: Bump helm-git version to {{ source "lastReleaseVersion" }}
scmid: default
spec:
labels:
- enhancement
- helm-git
59 changes: 59 additions & 0 deletions updatecli/updatecli.d/helm_secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
name: Bump helm_secrets 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 `helm_secrets` release version
spec:
owner: "jkroepke"
repository: "helm-secrets"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: semver
transformers:
- trimprefix: v

targets:
updateVersion:
name: "Update the `helm_secrets` version in the tools-versions.yml file"
sourceid: lastReleaseVersion
kind: yaml
spec:
file: "provisioning/tools-versions.yml"
key: "$.helm_secrets_version"
scmid: default
updatehelmdiffVersionInGoss:
name: Update the `helm_secrets` version in the goss test
kind: yaml
spec:
files:
- goss/goss-linux.yaml
key: $.command.helmplugins.stdout[2]
transformers:
- addprefix: "/secrets.*"
- addsuffix: "/"
scmid: default

actions:
default:
kind: github/pullrequest
title: Bump helm_secrets version to {{ source "lastReleaseVersion" }}
scmid: default
spec:
labels:
- enhancement
- helm-secrets
56 changes: 56 additions & 0 deletions updatecli/updatecli.d/helmfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: Bump helmfile 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 `helmfile` release version
spec:
owner: "helmfile"
repository: "helmfile"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: semver
transformers:
- trimprefix: v

targets:
updateVersion:
name: "Update the `helmfile` version in the tools-versions.yml file"
sourceid: lastReleaseVersion
kind: yaml
spec:
file: "provisioning/tools-versions.yml"
key: "$.helmfile_version"
scmid: default
updatehelmfileVersionInGoss:
name: Update the `helmfile` version in the goss test
kind: yaml
spec:
files:
- goss/goss-linux.yaml
key: $.command.helmfile.stdout[0]
scmid: default

actions:
default:
kind: github/pullrequest
title: Bump helmfile version to {{ source "lastReleaseVersion" }}
scmid: default
spec:
labels:
- enhancement
- helmfile
56 changes: 56 additions & 0 deletions updatecli/updatecli.d/sops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
name: Bump sops 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 `sops` release version
spec:
owner: "getsops"
repository: "sops"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: semver
transformers:
- trimprefix: v

targets:
updateVersion:
name: "Update the `sops` version in the tools-versions.yml file"
sourceid: lastReleaseVersion
kind: yaml
spec:
file: "provisioning/tools-versions.yml"
key: "$.sops_version"
scmid: default
updatesopsVersionInGoss:
name: Update the `sops` version in the goss test
kind: yaml
spec:
files:
- goss/goss-linux.yaml
key: $.command.sops.stdout[0]
scmid: default

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