minikube/.github/workflows/time-to-k8s.yml

43 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.20.2'
permissions:
contents: read
jobs:
benchmark:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- name: Checkout submodules
run: git submodule update --init
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9
with:
go-version: ${{env.GO_VERSION}}
cache: true
cache-dependency-path: ./go.sum
- 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@38e0b6e68b4c852a5500a94740f0e535e0d7ba54
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: Add time-to-k8s benchmark for ${{ steps.timeToK8sBenchmark.outputs.version }}
body: Updating time-to-k8s benchmark as part of the release process