-
Notifications
You must be signed in to change notification settings - Fork 31
41 lines (41 loc) · 1.61 KB
/
bench.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This workflow triggers siegfried's automated benchmarks.
#
# Trigger it by creating a release (the main benchmark runs)
# or by a commit to the develop branch (the develop benchmark runs).
name: Benchmark
on:
push:
branches:
- develop
release:
types: [released]
jobs:
bench:
runs-on: ubuntu-latest
steps:
- name: Install latest version of go
uses: actions/setup-go@v4
with:
go-version: 1.x
- name: Check out repository code
uses: actions/checkout@v3
with:
repository: richardlehane/provisioner
- name: Install provisioner
run: go install github.com/richardlehane/provisioner
- name: Provision develop
if: github.ref_name == 'develop'
run: provisioner -life=2h -host=develop-RAND.itforarchivists.com -env=PACKET_AUTH_TOKEN,RUNNER_AUTH,BB_ACCOUNT,BB_KEY -tu=https://www.itforarchivists.com/siegfried/develop -ts='div:nth-of-type(7) a' -td=15 scripts/develop.yaml
env:
PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }}
RUNNER_AUTH: ${{ secrets.RUNNER_AUTH }}
BB_ACCOUNT: ${{ secrets.BB_ACCOUNT }}
BB_KEY: ${{ secrets.BB_KEY }}
- name: Provision main
if: github.ref_name != 'develop' # release
run: provisioner -life=12h -max=-1 -host=bench-RAND.itforarchivists.com -env=PACKET_AUTH_TOKEN,RUNNER_AUTH,BB_ACCOUNT,BB_KEY scripts/bench.yaml
env:
PACKET_AUTH_TOKEN: ${{ secrets.PACKET_AUTH_TOKEN }}
RUNNER_AUTH: ${{ secrets.RUNNER_AUTH }}
BB_ACCOUNT: ${{ secrets.BB_ACCOUNT }}
BB_KEY: ${{ secrets.BB_KEY }}