Sync #21
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: Sync | |
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 }} |