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

38 lines
1.3 KiB
YAML
Raw Normal View History

name: "time-to-k8s benchmark"
on:
workflow_dispatch:
2021-06-15 17:27:02 +00:00
release:
types: [released]
2021-06-23 16:38:59 +00:00
env:
GOPROXY: https://proxy.golang.org
2021-11-08 09:02:26 +00:00
GO_VERSION: '1.17.3'
jobs:
benchmark:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init
- uses: actions/setup-go@v2
with:
2021-06-23 16:38:59 +00:00
go-version: ${{env.GO_VERSION}}
stable: true
2021-11-08 13:34:00 +00:00
- name: time-to-k8s Benchmark
id: timeToK8sBenchmark
run: |
2021-07-07 23:59:31 +00:00
./hack/benchmark/time-to-k8s/time-to-k8s.sh
echo "::set-output name=version::$(minikube version --short)"
- name: Create PR
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.MINIKUBE_BOT_PAT }}
2021-11-08 13:34:00 +00:00
commit-message: add time-to-k8s benchmark for ${{ steps.timeToK8sBenchmark.outputs.version }}
2021-07-07 23:59:31 +00:00
committer: minikube-bot <minikube-bot@google.com>
author: minikube-bot <minikube-bot@google.com>
2021-11-08 13:34:00 +00:00
branch: addTimeToK8s${{ steps.timeToK8sBenchmark.outputs.version }}
2021-07-07 23:59:31 +00:00
push-to-fork: minikube-bot/minikube
base: master
delete-branch: true
2021-11-08 13:34:00 +00:00
title: Add time-to-k8s benchmark for ${{ steps.timeToK8sBenchmark.outputs.version }}
2021-07-07 23:59:31 +00:00
body: Updating time-to-k8s benchmark as part of the release process