forked from jolicode/docker-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.66 KB
/
Copy pathboringcache-commit.yml
File metadata and controls
54 lines (50 loc) · 1.66 KB
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
53
54
name: Docker cache commit validation
run-name: Docker cache ${{ inputs.phase }} validation (${{ inputs.providers }})
on:
workflow_dispatch:
inputs:
phase:
description: Upstream commit build or restore-only repeat
type: choice
options: [commit, warm]
default: commit
providers:
description: Providers to run
type: choice
options: [all, baselines, boringcache]
default: all
cli_version:
description: Optional exact BoringCache CLI release or prerelease tag
type: string
default: ''
required: false
permissions:
contents: read
concurrency:
group: docker-starter-cache-validation
cancel-in-progress: false
jobs:
build:
name: ${{ matrix.provider }} PHP85 ${{ inputs.phase }}
if: github.repository == 'boringcache/docker-starter' && github.ref == 'refs/heads/boringcache-validation'
runs-on: ubuntu-24.04
timeout-minutes: 40
permissions:
contents: read
id-token: write
packages: write
strategy:
fail-fast: false
matrix:
provider: ${{ fromJSON(inputs.providers == 'baselines' && '["Registry","GitHub"]' || inputs.providers == 'boringcache' && '["BoringCache"]' || '["BoringCache","Registry","GitHub"]') }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: ./.github/actions/docker-validation
with:
provider: ${{ matrix.provider }}
phase: ${{ inputs.phase }}
cli_version: ${{ inputs.cli_version }}
github_token: ${{ github.token }}