Skip to content

Instantly share code, notes, and snippets.

@olblak
Last active August 14, 2023 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olblak/9b546fedae0562441b2337e932e8670e to your computer and use it in GitHub Desktop.
Save olblak/9b546fedae0562441b2337e932e8670e to your computer and use it in GitHub Desktop.
Update policy for updating Golang version from multiple GitHub repositories
Requirement:
* Updatecli >=0.57.0
`updatecli diff --config manifest.yaml --values values.yaml`
{{ 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 }}
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