WIP testing build limiting #5
Workflow file for this run
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: Test Limit | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "23 0 * * *" | |
push: | |
branches: | |
- limit | |
jobs: | |
buildmatrix: | |
name: Create Build Matrix | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
- name: Cache Setup | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: .github/matrix.cache/ | |
key: ${{ runner.os }}-matrix-${{ hashFiles('.github/matrix.php') }} | |
- name: Set up matrix | |
id: set-matrix | |
run: | | |
php .github/matrix.php >> $GITHUB_OUTPUT | |
build: | |
needs: buildmatrix | |
name: Build Docker Image for ${{ matrix.release.type }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: ${{fromJson(needs.buildmatrix.outputs.matrix)}} | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
workflow-keepalive: | |
if: github.event_name == 'schedule' | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
steps: | |
- uses: liskin/gh-workflow-keepalive@v1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |