diff --git a/updatecli/updatecli.d/helm.yml b/updatecli/updatecli.d/helm.yml new file mode 100644 index 000000000..4495c4594 --- /dev/null +++ b/updatecli/updatecli.d/helm.yml @@ -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 diff --git a/updatecli/updatecli.d/helm_diff.yml b/updatecli/updatecli.d/helm_diff.yml new file mode 100644 index 000000000..c4767e155 --- /dev/null +++ b/updatecli/updatecli.d/helm_diff.yml @@ -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 diff --git a/updatecli/updatecli.d/helm_git.yml b/updatecli/updatecli.d/helm_git.yml new file mode 100644 index 000000000..687acbfdb --- /dev/null +++ b/updatecli/updatecli.d/helm_git.yml @@ -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 diff --git a/updatecli/updatecli.d/helm_secrets.yml b/updatecli/updatecli.d/helm_secrets.yml new file mode 100644 index 000000000..0173f2d2a --- /dev/null +++ b/updatecli/updatecli.d/helm_secrets.yml @@ -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 diff --git a/updatecli/updatecli.d/helmfile.yml b/updatecli/updatecli.d/helmfile.yml new file mode 100644 index 000000000..94c8bf051 --- /dev/null +++ b/updatecli/updatecli.d/helmfile.yml @@ -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 diff --git a/updatecli/updatecli.d/sops.yml b/updatecli/updatecli.d/sops.yml new file mode 100644 index 000000000..ec0765df3 --- /dev/null +++ b/updatecli/updatecli.d/sops.yml @@ -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