-
-
Notifications
You must be signed in to change notification settings - Fork 33
96 lines (81 loc) · 2.04 KB
/
Copy pathdocker.yml
File metadata and controls
96 lines (81 loc) · 2.04 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: "Docker"
on:
workflow_dispatch:
push:
branches: ["master"]
schedule:
- cron: "0 8 * * 1"
permissions:
contents: read
jobs:
test:
name: "Test"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
item: ["8.5", "8.5-fpm"]
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Set up Docker Buildx"
uses: docker/setup-buildx-action@v3
- name: "Build image"
uses: docker/build-push-action@v6
with:
context: "${{ matrix.item }}"
load: true
tags: "dockette/php:${{ matrix.item }}"
- name: "Test image"
run: "make test-${{ matrix.item }}"
build:
name: "Build"
needs: ["test"]
uses: dockette/.github/.github/workflows/docker.yml@master
secrets: inherit
with:
image: "dockette/php"
tag: "${{ matrix.item }}"
context: "${{ matrix.item }}"
strategy:
matrix:
include:
- item: "5.6"
- item: "5.6-fpm"
- item: "7.0"
- item: "7.0-fpm"
- item: "7.1"
- item: "7.1-fpm"
- item: "7.2"
- item: "7.2-fpm"
- item: "7.3"
- item: "7.3-fpm"
- item: "7.4"
- item: "7.4-fpm"
- item: "8.0"
- item: "8.0-fpm"
- item: "8.1"
- item: "8.1-fpm"
- item: "8.2"
- item: "8.2-fpm"
- item: "8.3"
- item: "8.3-fpm"
- item: "8.4"
- item: "8.4-fpm"
- item: "8.5"
- item: "8.5-fpm"
fail-fast: false
docs:
name: "Docs"
runs-on: "ubuntu-latest"
needs: ["build"]
if: github.ref == 'refs/heads/master'
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Update Docker Hub description"
uses: peter-evans/dockerhub-description@v5
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: "dockette/php"