Skip to content

Commit

Permalink
Merge pull request #55 from laradock/develop
Browse files Browse the repository at this point in the history
rename Dockerfile
  • Loading branch information
bestlong authored Apr 17, 2021
2 parents 704eb81 + fa8fdaf commit 3573bcb
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 16 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: [56, 70, 71, 72, 73, 74, 80]
php_version: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0"]
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
env:
PHP_VERSION: ${{ matrix.php_version }}
run: |
export TAG_VERSION=${PHP_VERSION:0:1}.${PHP_VERSION:1:1}
docker build . --file Dockerfile-${{ matrix.php_version }} --tag laradock/php-fpm:${{ env.TAG_PREFIX }}-${TAG_VERSION}
docker build . --file Dockerfile-${{ matrix.php_version }} --tag laradock/php-fpm:${{ env.TAG_PREFIX }}-${{ matrix.php_version }}
docker image ls
- name: Push image to Docker hub
if: ${{ success() && (github.repository == 'laradock/php-fpm') && (github.ref == 'refs/heads/master') }}
env:
PHP_VERSION: ${{ matrix.php_version }}
run: |
export TAG_VERSION=${PHP_VERSION:0:1}.${PHP_VERSION:1:1}
echo ${{ secrets.DOCKER_HUB_PASSWORD }} | docker login -u ${{ secrets.DOCKER_HUB_USER }} --password-stdin
docker push laradock/php-fpm:${{ env.TAG_PREFIX }}-${TAG_VERSION}
docker push laradock/php-fpm:${{ env.TAG_PREFIX }}-${{ matrix.php_version }}
docker logout
14 changes: 7 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ services:

env:
matrix:
- PHP_VERSION=56
- PHP_VERSION=70
- PHP_VERSION=71
- PHP_VERSION=72
- PHP_VERSION=73
- PHP_VERSION=74
- PHP_VERSION=80
- PHP_VERSION=5.6
- PHP_VERSION=7.0
- PHP_VERSION=7.1
- PHP_VERSION=7.2
- PHP_VERSION=7.3
- PHP_VERSION=7.4
- PHP_VERSION=8.0

# Installing a newer Docker version
before_install:
Expand Down
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 comments on commit 3573bcb

Please sign in to comment.