CI: Add job to update all ISO/Kicbase deps
parent
d437eed59b
commit
18928153d7
|
@ -0,0 +1,71 @@
|
|||
name: "update-iso-image-versions"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.3'
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
update-all:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
||||
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
|
||||
with:
|
||||
go-version: ${{env.GO_VERSION}}
|
||||
cache-dependency-path: ./go.sum
|
||||
- name: Bump versions
|
||||
id: bumpVersions
|
||||
run: |
|
||||
make update-buildkit-version
|
||||
make update-cni-plugins-version
|
||||
make update-containerd-version
|
||||
make update-cri-o-version
|
||||
make update-crictl-version
|
||||
make update-docker-buildx-version
|
||||
make update-docker-version
|
||||
make update-nerdctl-version
|
||||
make update-runc-version
|
||||
make update-ubuntu-version
|
||||
# The following is to support multiline with GITHUB_OUTPUT, see https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
|
||||
echo "changes<<EOF" >> $GITHUB_OUTPUT
|
||||
echo "$(git status --porcelain)" >> $GITHUB_OUTPUT
|
||||
echo "EOF" >> $GITHUB_OUTPUT
|
||||
- name: Create PR
|
||||
id: createPR
|
||||
if: ${{ steps.bumpVersions.outputs.changes != '' }}
|
||||
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
|
||||
with:
|
||||
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
commit-message: 'Kicbase/ISO: Update dependency versions'
|
||||
committer: minikube-bot <minikube-bot@google.com>
|
||||
author: minikube-bot <minikube-bot@google.com>
|
||||
branch: bump_iso_image_versions
|
||||
branch-suffix: short-commit-hash
|
||||
push-to-fork: minikube-bot/minikube
|
||||
base: master
|
||||
delete-branch: true
|
||||
title: 'Kicbase/ISO: Update dependency versions'
|
||||
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
|
||||
if: ${{ steps.bumpVersions.outputs.changes != '' }}
|
||||
with:
|
||||
github-token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
script: |
|
||||
github.rest.issues.createComment({
|
||||
issue_number: ${{ steps.createPR.outputs.pull-request-number }},
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: 'ok-to-build-image'
|
||||
})
|
||||
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410
|
||||
if: ${{ steps.bumpVersions.outputs.changes != '' }}
|
||||
with:
|
||||
github-token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
||||
script: |
|
||||
github.rest.issues.createComment({
|
||||
issue_number: ${{ steps.createPR.outputs.pull-request-number }},
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
body: 'ok-to-build-iso'
|
||||
})
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.1'
|
||||
GO_VERSION: '1.21.3'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -14,7 +14,7 @@ jobs:
|
|||
bump-kong-ingress-controller-version:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
||||
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
|
||||
with:
|
||||
go-version: ${{env.GO_VERSION}}
|
||||
|
|
|
@ -6,7 +6,7 @@ on:
|
|||
- cron: "0 10 * * 1"
|
||||
env:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
GO_VERSION: '1.21.1'
|
||||
GO_VERSION: '1.21.3'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
@ -14,7 +14,7 @@ jobs:
|
|||
bump-kong-version:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
||||
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
|
||||
with:
|
||||
go-version: ${{env.GO_VERSION}}
|
||||
|
|
Loading…
Reference in New Issue