-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (46 loc) · 1.56 KB
/
pr.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
name: Pull Requests
on:
pull_request:
permissions:
actions: write
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
uses: Ilyes512/github-actions/.github/workflows/build-php.yml@0.2.2
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
docker:
- dockerfile: fpm/Dockerfile
image-name: ghcr.io/${{ github.repository }}
key: fpm
- dockerfile: apache/Dockerfile
image-name: ghcr.io/${{ github.repository }}/apache
key: apache
with:
runner-os: ubuntu-22.04
platform: ${{ matrix.platform }}
image-name: ${{ matrix.docker.image-name }}
dockerfile: ${{ matrix.docker.dockerfile }}
cache-key: ${{ matrix.os }}-buildx-${{ matrix.platform }}-${{ matrix.docker.key }}-pr-${{ github.event.number }}-${{ github.sha }}
cache-restore-keys: |
${{ matrix.os }}-buildx-${{ matrix.platform }}-${{ matrix.docker.key }}-pr-${{ github.event.number }}-
${{ matrix.os }}-buildx-${{ matrix.platform }}-${{ matrix.docker.key }}-pr-
${{ matrix.os }}-buildx-${{ matrix.platform }}-${{ matrix.docker.key }}-main-
merge:
uses: Ilyes512/github-actions/.github/workflows/merge-php.yml@0.2.2
needs: build
strategy:
matrix:
image-name:
- ghcr.io/${{ github.repository }}
- ghcr.io/${{ github.repository }}/apache
with:
runner-os: ubuntu-22.04
image-name: ${{ matrix.image-name }}