cron-testgrid-daily #248
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-latest.yaml \ | |
--priority -2 |