Skip to content

Commit

Permalink
Add old and new version to 'update-ubuntu-version' automation
Browse files Browse the repository at this point in the history
  • Loading branch information
salasberryfin committed May 7, 2023
1 parent 4b6d7ec commit 66620fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update-ubuntu-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
- name: Bump Ubuntu version
id: bumpUbuntu
run: |
echo "OLD_VERSION=$(DEP=ubuntu make get-dependency-version)" >> $GITHUB_OUTPUT
make update-ubuntu-version
echo "NEW_VERSION=$(DEP=ubuntu make get-dependency-version)" >> $GITHUB_OUTPUT
c=$(git status --porcelain)
c="${c//$'\n'/'%0A'}"
c="${c//$'\r'/'%0D'}"
Expand All @@ -35,14 +37,14 @@ jobs:
uses: peter-evans/create-pull-request@284f54f989303d2699d373481a0cfa13ad5a6666
with:
token: ${{ secrets.MINIKUBE_BOT_PAT }}
commit-message: update ubuntu:focal image version
commit-message: 'Kicbase: Bump ubuntu:focal from ${{ steps.bumpUbuntu.outputs.OLD_VERSION }} to ${{ steps.bumpUbuntu.outpus.NEW_VERSION }}'
committer: minikube-bot <[email protected]>
author: minikube-bot <[email protected]>
branch: auto_bump_ubuntu_version
push-to-fork: minikube-bot/minikube
base: master
delete-branch: true
title: 'Kicbase: Bump ubuntu:focal image version'
title: 'Kicbase: Bump ubuntu:focal from ${{ steps.bumpUbuntu.outputs.OLD_VERSION }} to ${{ steps.bumpUbuntu.outpus.NEW_VERSION }}'
body: |
The ubuntu:focal image released a new version
Expand Down
1 change: 1 addition & 0 deletions hack/update/get_version/get_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var dependencies = map[string]dependency{
"hugo": {"netlify.toml", `HUGO_VERSION = "(.*)"`},
"metrics-server": {"pkg/minikube/assets/addons.go", `metrics-server/metrics-server:(.*)@`},
"runc": {"deploy/iso/minikube-iso/package/runc-master/runc-master.mk", `RUNC_MASTER_VERSION = (.*)`},
"ubuntu": {"deploy/kicbase/Dockerfile", `UBUNTU_FOCAL_IMAGE="(.*)"`},
}

func main() {
Expand Down

0 comments on commit 66620fd

Please sign in to comment.