Skip to content

Commit fa8fdaf

Browse files
committed
rename Dockerfile
1 parent 704eb81 commit fa8fdaf

File tree

9 files changed

+10
-16
lines changed

9 files changed

+10
-16
lines changed

.github/workflows/dockerimage.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,17 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
php_version: [56, 70, 71, 72, 73, 74, 80]
18+
php_version: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0"]
1919
steps:
2020
- uses: actions/checkout@v2
2121
- name: Build the Docker image
22-
env:
23-
PHP_VERSION: ${{ matrix.php_version }}
2422
run: |
25-
export TAG_VERSION=${PHP_VERSION:0:1}.${PHP_VERSION:1:1}
26-
docker build . --file Dockerfile-${{ matrix.php_version }} --tag laradock/php-fpm:${{ env.TAG_PREFIX }}-${TAG_VERSION}
23+
docker build . --file Dockerfile-${{ matrix.php_version }} --tag laradock/php-fpm:${{ env.TAG_PREFIX }}-${{ matrix.php_version }}
2724
docker image ls
2825
2926
- name: Push image to Docker hub
3027
if: ${{ success() && (github.repository == 'laradock/php-fpm') && (github.ref == 'refs/heads/master') }}
31-
env:
32-
PHP_VERSION: ${{ matrix.php_version }}
3328
run: |
34-
export TAG_VERSION=${PHP_VERSION:0:1}.${PHP_VERSION:1:1}
3529
echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin
36-
docker push laradock/php-fpm:${{ env.TAG_PREFIX }}-${TAG_VERSION}
30+
docker push laradock/php-fpm:${{ env.TAG_PREFIX }}-${{ matrix.php_version }}
3731
docker logout

.travis.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ services:
55

66
env:
77
matrix:
8-
- PHP_VERSION=56
9-
- PHP_VERSION=70
10-
- PHP_VERSION=71
11-
- PHP_VERSION=72
12-
- PHP_VERSION=73
13-
- PHP_VERSION=74
14-
- PHP_VERSION=80
8+
- PHP_VERSION=5.6
9+
- PHP_VERSION=7.0
10+
- PHP_VERSION=7.1
11+
- PHP_VERSION=7.2
12+
- PHP_VERSION=7.3
13+
- PHP_VERSION=7.4
14+
- PHP_VERSION=8.0
1515

1616
# Installing a newer Docker version
1717
before_install:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)