Skip to content

Commit

Permalink
chore: add Aspect Workflows warming workflows to GitHub Actions (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored Jun 7, 2023
1 parent 08feb34 commit 606ea72
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/warming.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI Warming

# Periodically create archives that have Bazel external folders to restore on new instances, making
# those instances more "warm".
on:
# Allow trigger via UI
workflow_dispatch:
schedule:
# Every 4 hours preceeding working hours
# M-F 8:05, 12:05, 16:05 PDT
- cron: '5 15,19,23 * * 1-5'

jobs:
warming-archive:
# Note: warming should run an a dedicated runner pool / queue typically named "aspect-default-warming".
runs-on: [self-hosted, aspect-workflows, aspect-aspect-cli-warming]
steps:
- name: Configure environment
run: configure_workflows_env
- uses: actions/checkout@v3
- name: Agent health checks
run: agent_health_check
- name: Create warming archive for .
uses: ./rosetta/gh-actions
with:
task: warming
workspace: .
- name: Archive warming tars
run: warming_archive

0 comments on commit 606ea72

Please sign in to comment.