Skip to content

Commit

Permalink
Merge pull request #11863 from medyagh/bum_kubernetes_auto
Browse files Browse the repository at this point in the history
auto bump kubernetes version using github actions
  • Loading branch information
sharifelgamal authored Jul 1, 2021
2 parents 3960a8e + 6e1bab3 commit 4179f03
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/update-k8s-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "update-kubernetes-versions"
on:
schedule:
# every week on Thursday at 20:30 UTC
- cron: "45 20 * * 4"
env:
GOPROXY: https://proxy.golang.org
GO_VERSION: 1.16.4
jobs:
bump-k8s-versions:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ${{env.GO_VERSION}}
stable: true
- name: Bump Kuberenetes Versions
id: bumpk8s
run: |
make update-kubernetes-version
echo "::set-output name=changes::$(git status --porcelain)"
- name: Create PR
if: ${{ steps.bumpk8s.outputs.changes != '' }}
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.MINIKUBE_BOT_PAT }}
commit-message: bump default/newest kubernetes versions
committer: minikube-bot <minikube-bot@google.com>
author: minikube-bot <minikube-bot@google.com>
branch: auto_bump_k8s_versions
push-to-fork: minikube-bot/minikube
base: master
delete-branch: true
title: 'bump default/newest kubernetes versions'
body: |
This PR was auto-generated by `make update-kubernetes-version` using [update-k8s-versions.yml](https://github.com/kubernetes/minikube/tree/master/.github/workflows) CI Workflow.
Please only merge if all the tests pass.
${{ steps.bumpk8s.outputs.changes }}
5 changes: 5 additions & 0 deletions hack/update/golang_version/update_golang_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ var (
`GO_VERSION: '.*`: `GO_VERSION: '{{.StableVersion}}'`,
},
},
".github/workflows/update_k8s_versions.yml": {
Replace: map[string]string{
`GO_VERSION: '.*`: `GO_VERSION: '{{.StableVersion}}'`,
},
},
".github/workflows/pr_verified.yaml": {
Replace: map[string]string{
`GO_VERSION: '.*`: `GO_VERSION: '{{.StableVersion}}'`,
Expand Down

0 comments on commit 4179f03

Please sign in to comment.