12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- version : [ '7.4', ' 8.0', '8.1', '8.2', '8.3' ]
15
+ version : [ '8.0', '8.1', '8.2', '8.3' ]
16
16
type : [ '', '-prod' ]
17
17
18
18
steps :
25
25
- name : Setup Docker Buildx
26
26
uses : docker/setup-buildx-action@v2
27
27
28
- - name : Build and export to Docker
29
- uses : docker/build-push-action@v3
30
- with :
31
- context : ${{ matrix.version }}${{ matrix.type }}
32
- load : true
33
- tags : kooldev/wordpress:${{ matrix.version }}${{ matrix.type }}
34
-
35
28
- name : Build and export to Docker (nginx)
36
29
uses : docker/build-push-action@v3
37
30
with :
@@ -41,18 +34,13 @@ jobs:
41
34
42
35
- name : Test docker images PHP executable
43
36
run : |
44
- docker run kooldev/wordpress:${{ matrix.version }}${{ matrix.type }} php -v
45
- docker run kooldev/wordpress:${{ matrix.version }}${{ matrix.type }} wp --allow-root --version
46
-
47
37
docker run kooldev/wordpress:${{ matrix.version }}-nginx${{ matrix.type }} php -v
48
38
docker run kooldev/wordpress:${{ matrix.version }}-nginx${{ matrix.type }} wp --allow-root --version
49
-
50
39
docker run kooldev/wordpress:${{ matrix.version }}-nginx${{ matrix.type }} nginx -v
51
40
docker run kooldev/wordpress:${{ matrix.version }}-nginx${{ matrix.type }} supervisord version
52
41
53
42
- name : Test docker images wordpress code
54
43
run : |
55
- docker run kooldev/wordpress:${{ matrix.version }}${{ matrix.type }} php /kool/wordpress/index.php
56
44
docker run kooldev/wordpress:${{ matrix.version }}-nginx${{ matrix.type }} php /kool/wordpress/index.php
57
45
58
46
- name : Login to DockerHub
65
53
- name : Push to Hub
66
54
if : github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-wordpress'
67
55
run : |
68
- docker push kooldev/wordpress:${{ matrix.version }}${{ matrix.type }}
69
56
docker push kooldev/wordpress:${{ matrix.version }}-nginx${{ matrix.type }}
70
57
71
- - name : Build and push
72
- uses : docker/build-push-action@v3
73
- if : github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-wordpress'
74
- with :
75
- context : ${{ matrix.version }}${{ matrix.type }}
76
- platforms : linux/amd64,linux/arm64
77
- push : true
78
- tags : kooldev/wordpress:${{ matrix.version }}${{ matrix.type }}
79
-
80
58
- name : Build and push (nginx)
81
59
uses : docker/build-push-action@v3
82
60
if : github.ref == 'refs/heads/master' && github.repository == 'kool-dev/docker-wordpress'
0 commit comments