File tree Expand file tree Collapse file tree 1 file changed +55
-8
lines changed Expand file tree Collapse file tree 1 file changed +55
-8
lines changed Original file line number Diff line number Diff line change 1
- name : docker image
1
+ name : CI
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
6
- pull_request :
7
- branches : [ master ]
5
+ branches :
6
+ - ' master'
8
7
9
8
jobs :
10
- build_70 :
9
+ docker :
11
10
runs-on : ubuntu-latest
12
11
steps :
13
- - uses : actions/checkout@v2
14
- - name : Build PHP-FPM 7.0 Docker image
15
- run : docker build . --file ./7.0/Dockerfile --tag shion/php-fpm:7.0
12
+ -
13
+ name : Checkout
14
+ uses : actions/checkout@v2
15
+ -
16
+ name : Login to DockerHub
17
+ uses : docker/login-action@v1
18
+ with :
19
+ username : ${{ secrets.DOCKER_HUB_USER }}
20
+ password : ${{ secrets.DOCKER_HUB_PWD }}
21
+ -
22
+ name : Build and push php7.0
23
+ uses : docker/build-push-action@v2
24
+ with :
25
+ context : ./7.0
26
+ push : true
27
+ tags : shion/php-fpm:7.0
28
+ -
29
+ name : Build and push php7.1
30
+ uses : docker/build-push-action@v2
31
+ with :
32
+ context : ./7.1
33
+ push : true
34
+ tags : shion/php-fpm:7.1
35
+ -
36
+ name : Build and push php7.2
37
+ uses : docker/build-push-action@v2
38
+ with :
39
+ context : ./7.2
40
+ push : true
41
+ tags : shion/php-fpm:7.2
42
+ -
43
+ name : Build and push php7.3
44
+ uses : docker/build-push-action@v2
45
+ with :
46
+ context : ./7.3
47
+ push : true
48
+ tags : shion/php-fpm:7.3
49
+ -
50
+ name : Build and push php7.4
51
+ uses : docker/build-push-action@v2
52
+ with :
53
+ context : ./7.4
54
+ push : true
55
+ tags : shion/php-fpm:7.4
56
+ -
57
+ name : Build and push php8.0
58
+ uses : docker/build-push-action@v2
59
+ with :
60
+ context : ./8.0
61
+ push : true
62
+ tags : shion/php-fpm:8.0,shion/php-fpm:latest
You can’t perform that action at this time.
0 commit comments