Repository navigation
85 lines (74 loc) · 2.38 KB
/
Copy pathdocker.yml
File metadata and controls
85 lines (74 loc) · 2.38 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
name: "Docker"
on:
workflow_dispatch:
push:
schedule:
- cron: "0 8 * * 1"
permissions:
contents: read
jobs:
test:
name: "Test"
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { context: debian-php-70, tag: php-70 }
- { context: debian-php-71, tag: php-71 }
- { context: debian-php-72, tag: php-72 }
- { context: debian-php-73, tag: php-73 }
- { context: debian-php-74, tag: php-74 }
- { context: debian-php-80, tag: php-80 }
- { context: debian-php-81, tag: php-81 }
- { context: debian-php-82, tag: php-82 }
- { context: debian-php-83, tag: php-83 }
- { context: debian-php-84, tag: php-84 }
- { context: debian-php-85, tag: php-85 }
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build image
uses: docker/build-push-action@v7
with:
context: ${{ matrix.context }}
tags: dockette/web:${{ matrix.tag }}
platforms: linux/amd64
load: true
cache-from: type=gha
- name: Test image
run: .scripts/test.sh ${{ matrix.tag }}
build:
name: "Build"
needs: test
uses: dockette/.github/.github/workflows/docker.yml@master
secrets: inherit
with:
image: "dockette/web"
tag: "${{ matrix.tag }}"
context: "${{ matrix.context }}"
push: ${{ github.ref == 'refs/heads/master' }}
strategy:
matrix:
include:
- { context: debian-php-70, tag: php-70 }
- { context: debian-php-71, tag: php-71 }
- { context: debian-php-72, tag: php-72 }
- { context: debian-php-73, tag: php-73 }
- { context: debian-php-74, tag: php-74 }
- { context: debian-php-80, tag: php-80 }
- { context: debian-php-81, tag: php-81 }
- { context: debian-php-82, tag: php-82 }
- { context: debian-php-83, tag: php-83 }
- { context: debian-php-84, tag: php-84 }
- { context: debian-php-85, tag: php-85 }
docs:
name: "Docs"
needs: build
if: github.ref == 'refs/heads/master'
uses: dockette/.github/.github/workflows/dockerhub-description.yml@master
secrets: inherit
with:
image: "dockette/web"