41 lines
1.5 KiB
YAML
41 lines
1.5 KiB
YAML
name: "time-to-k8s benchmark"
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [released]
|
|
env:
|
|
GOPROXY: https://proxy.golang.org
|
|
GO_VERSION: '1.23.2'
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
benchmark:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
- name: Checkout submodules
|
|
run: git submodule update --init
|
|
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
|
|
with:
|
|
go-version: ${{env.GO_VERSION}}
|
|
- name: time-to-k8s Benchmark
|
|
id: timeToK8sBenchmark
|
|
run: |
|
|
./hack/benchmark/time-to-k8s/time-to-k8s.sh
|
|
echo "version=$(minikube version --short)" >> "$GITHUB_OUTPUT"
|
|
- name: Create PR
|
|
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f
|
|
with:
|
|
token: ${{ secrets.MINIKUBE_BOT_PAT }}
|
|
commit-message: add time-to-k8s benchmark for ${{ steps.timeToK8sBenchmark.outputs.version }}
|
|
committer: minikube-bot <minikube-bot@google.com>
|
|
author: minikube-bot <minikube-bot@google.com>
|
|
branch: addTimeToK8s${{ steps.timeToK8sBenchmark.outputs.version }}
|
|
branch-suffix: short-commit-hash
|
|
push-to-fork: minikube-bot/minikube
|
|
base: master
|
|
delete-branch: true
|
|
title: "Post-release: Add time-to-k8s benchmark for ${{ steps.timeToK8sBenchmark.outputs.version }}"
|
|
body: Updating time-to-k8s benchmark as part of the release process
|