diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8cdad87..3c5bc78 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,29 @@ jobs: push: true tags: carlosalgms/composer-and-node-ci:latest,carlosalgms/composer-and-node-ci:php8 + + build_7: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Login to Docker Hub + id: docker_login + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} + + - name: Build 7 and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + build-args: | + FROM_IMAGE=php:7-cli-alpine + tags: carlosalgms/composer-and-node-ci:php7 + + build_71: runs-on: ubuntu-latest steps: diff --git a/Makefile b/Makefile index 4432280..f18e1b1 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,11 @@ build_8: -t carlosalgms/composer-and-node-ci:latest \ -t carlosalgms/composer-and-node-ci:php8 +build_7: + docker build . --rm \ + --build-arg=FROM_IMAGE="php:7-cli-alpine" \ + -t carlosalgms/composer-and-node-ci:php7 + build_71: docker build . --rm \ -t carlosalgms/composer-and-node-ci:php7.1 \