-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (49 loc) · 1.55 KB
/
matrix.yml
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
name: Matrix
on:
workflow_dispatch:
inputs:
images:
type: string
required: true
description: 'Distribution(s) to build'
default: '["ubuntu22-full-x64", "ubuntu22-full-arm64", "ubuntu24-full-x64", "ubuntu24-full-arm64"]'
schedule:
- cron: '0 8 */15 * *'
jobs:
sync:
name: Synchronize
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Cleanup dev AMIs
env:
AMI_PREFIX: runs-on-dev
run: bundle exec bin/utils/cleanup-amis --force
- name: Synchronize with upstream repository
run: bundle exec bin/sync
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Sync from upstream"
build-test-release:
name: Build/Test/Release ${{ matrix.image_id }}
needs: sync
strategy:
fail-fast: false
matrix:
image_id: ${{ fromJSON(github.event.inputs.images || '["ubuntu22-full-x64", "ubuntu22-full-arm64", "ubuntu24-full-x64", "ubuntu24-full-arm64"]') }}
uses: ./.github/workflows/build-test-release.yml
secrets: inherit
with:
image_id: ${{ matrix.image_id }}