Last active
August 14, 2023 10:08
-
-
Save olblak/9b546fedae0562441b2337e932e8670e to your computer and use it in GitHub Desktop.
Update policy for updating Golang version from multiple GitHub repositories
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
Requirement: | |
* Updatecli >=0.57.0 | |
`updatecli diff --config manifest.yaml --values values.yaml` | |
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
{{ range .scms }} | |
--- | |
name: Bump Golang Version | |
pipelineid: golang | |
sources: | |
golang: | |
name: Get latest Golang version | |
kind: golang | |
targets: | |
go.mod: | |
name: 'Update Golang version to {{ source "golang" }}' | |
kind: golang/gomod | |
scmid: default | |
sourceid: golang | |
actions: | |
default: | |
title: 'Bump Golang to {{ source "golang" }}' | |
kind: github/pullrequest | |
spec: | |
labels: | |
- chore | |
scmid: default | |
scms: | |
default: | |
kind: github | |
spec: | |
branch: {{ .branch }} | |
owner: {{ .owner }} | |
repository: {{ .repository }} | |
token: '{{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}' | |
username: '{{ requiredEnv "UPDATECLI_GITHUB_ACTOR" }}' | |
{{ end }} |
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
scms: | |
fleet: | |
owner: rancher | |
repository: fleet | |
branch: master | |
gitjob: | |
owner: rancher | |
repository: gitjob | |
branch: master | |
client-go: | |
owner: rancher | |
repository: client-go | |
branch: master | |
wrangler-cli: | |
owner: rancher | |
repository: wrangler-cli | |
branch: master | |
wrangler: | |
owner: rancher | |
repository: wrangler | |
branch: master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment