Skip to content

cron-testgrid-daily #438

cron-testgrid-daily

cron-testgrid-daily #438

name: cron-testgrid-daily
on:
schedule:
- cron: "0 1 * * 2,4" # “At 01:00 on Tuesday and Thursday.”
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