Skip to content

cron-testgrid-daily #248

cron-testgrid-daily

cron-testgrid-daily #248

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