Skip to content

Commit 2934fa4

Browse files
authored
Update docker-image.yml
1 parent 6681227 commit 2934fa4

File tree

1 file changed

+55
-8
lines changed

1 file changed

+55
-8
lines changed

.github/workflows/docker-image.yml

Lines changed: 55 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,62 @@
1-
name: docker image
1+
name: CI
22

33
on:
44
push:
5-
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
5+
branches:
6+
- 'master'
87

98
jobs:
10-
build_70:
9+
docker:
1110
runs-on: ubuntu-latest
1211
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

0 commit comments

Comments
 (0)