-
Notifications
You must be signed in to change notification settings - Fork 79
72 lines (63 loc) · 2.47 KB
/
cron-testgrid-daily.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: cron-testgrid-daily
on:
schedule:
- cron: "0 1 * * 1,2,3,4,5" # “At 01:00 on Monday, Tuesday, Wednesday, Thursday, and Friday.”
workflow_dispatch: {}
jobs:
testgrid-daily:
if: ${{ github.repository_owner == 'replicatedhq' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pull tgrun image
run: docker pull replicated/tgrun:latest
- name: testgrid-queue-staging
env:
TESTGRID_API_TOKEN: ${{ secrets.TESTGRID_PROD_API_TOKEN }}
run: |
REF="STAGING-daily-$(git rev-parse --short HEAD)-$(date --utc +%FT%TZ)"
docker run --rm -e TESTGRID_API_TOKEN -v `pwd`:/wrk -w /wrk \
replicated/tgrun:latest queue --staging \
--ref "${REF}" \
--spec ./testgrid/specs/full.yaml \
--os-spec ./testgrid/specs/os-firstlast.yaml \
--priority -1
testgrid-daily-storage-migration:
if: ${{ github.repository_owner == 'replicatedhq' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pull tgrun image
run: docker pull replicated/tgrun:latest
- name: testgrid-queue-staging
env:
TESTGRID_API_TOKEN: ${{ secrets.TESTGRID_PROD_API_TOKEN }}
run: |
REF="STAGING-daily-storage-migration-$(git rev-parse --short HEAD)-$(date --utc +%FT%TZ)"
docker run --rm -e TESTGRID_API_TOKEN -v `pwd`:/wrk -w /wrk \
replicated/tgrun:latest queue --staging \
--ref "${REF}" \
--spec ./testgrid/specs/storage-migration.yaml \
--os-spec ./testgrid/specs/os-customer-common.yaml \
--priority -1
testgrid-daily-customer-migration:
if: ${{ github.repository_owner == 'replicatedhq' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pull tgrun image
run: docker pull replicated/tgrun:latest
- name: testgrid-queue-staging
env:
TESTGRID_API_TOKEN: ${{ secrets.TESTGRID_PROD_API_TOKEN }}
run: |
REF="STAGING-daily-customer-migration-$(git rev-parse --short HEAD)-$(date --utc +%FT%TZ)"
docker run --rm -e TESTGRID_API_TOKEN -v `pwd`:/wrk -w /wrk \
replicated/tgrun:latest queue --staging \
--ref "${REF}" \
--spec ./testgrid/specs/customer-migration-specs.yaml \
--os-spec ./testgrid/specs/os-customer-common.yaml \
--priority -1