Skip to content

WIP testing build limiting #7

WIP testing build limiting

WIP testing build limiting #7

Workflow file for this run

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 }}