[LOPS-2367] Add 8.3 docker image (#118) #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Build Tools Image (Build and Push) | |
on: | |
push: | |
branches: | |
- '8.x' | |
jobs: | |
docker-build: | |
runs-on: ubuntu-latest | |
name: Build and push ${{ matrix.php-versions }} Docker image | |
strategy: | |
matrix: | |
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- | |
name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to Quay | |
uses: docker/login-action@v1 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_PASSWORD }} | |
- name: Build and push | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
tags: | | |
pantheonpublic/build-tools-ci:8.x-php${{ matrix.php-versions }} | |
quay.io/pantheon-public/build-tools-ci:8.x-php${{ matrix.php-versions }} | |
build-args: | | |
PHPVERSION=${{ matrix.php-versions }} |