Repository navigation
67 lines (58 loc) · 1.67 KB
/
Copy pathpr.yml
File metadata and controls
67 lines (58 loc) · 1.67 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
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Pull Requests
on:
pull_request:
permissions:
actions: write
packages: write
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check:
name: Dockerfiles match template
runs-on: ubuntu-26.04
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Task
uses: go-task/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Regenerate Dockerfiles
run: task generate
- name: Fail if generated files differ
run: git diff --exit-code fpm/Dockerfile apache/Dockerfile
build:
needs: check
uses: specsnl/github-actions/.github/workflows/build-php.yml@3.0.0
strategy:
fail-fast: false
matrix:
runs-on:
- os: ubuntu-26.04
platform: linux/amd64
- os: ubuntu-26.04-arm
platform: linux/arm64
docker:
- dockerfile: fpm/Dockerfile
image-name: ghcr.io/${{ github.repository }}
- dockerfile: apache/Dockerfile
image-name: ghcr.io/${{ github.repository }}/apache
with:
runs-on: ${{ matrix.runs-on.os }}
platform: ${{ matrix.runs-on.platform }}
image-name: ${{ matrix.docker.image-name }}
dockerfile: ${{ matrix.docker.dockerfile }}
merge:
uses: specsnl/github-actions/.github/workflows/merge-php.yml@3.0.0
needs: build
strategy:
matrix:
image-name:
- ghcr.io/${{ github.repository }}
- ghcr.io/${{ github.repository }}/apache
with:
runs-on: ubuntu-26.04
image-name: ${{ matrix.image-name }}