Updated PHPStan to commit 13e03f46e70e07adddbecbf4dee9d35eaa90ee3a #3431
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
# From: | |
# https://www.docker.com/blog/docker-github-actions/ | |
# https://github.com/metcalfc/docker-action-examples | |
name: Docker image nightly | |
on: | |
push: | |
branches: | |
- "1.11.x" | |
paths: | |
- '.github/workflows/docker-nightly.yml' | |
- 'docker/**' | |
- 'phpstan' | |
- '.phar-checksum' | |
- 'bootstrap.php' | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
concurrency: docker-nightly-${{ github.ref }}-${{ matrix.docker-file }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- docker-file: "./docker/Dockerfile.php.8.0" | |
image-tag-suffix: "" | |
- docker-file: "./docker/Dockerfile.php.8.0" | |
image-tag-suffix: "-php8.0" | |
- docker-file: "./docker/Dockerfile.php.8.1" | |
image-tag-suffix: "-php8.1" | |
- docker-file: "./docker/Dockerfile.php.8.2" | |
image-tag-suffix: "-php8.2" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to ghcr | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
context: ./docker | |
file: "${{ matrix.docker-file }}" | |
build-args: | | |
PHPSTAN_VERSION=1.11.x-dev#${{ github.sha }} | |
push: true | |
tags: "ghcr.io/phpstan/phpstan:nightly${{ matrix.image-tag-suffix }}" | |
platforms: linux/amd64,linux/arm64 | |
cache-from: type=gha, scope=${{ github.workflow }} | |
cache-to: type=gha, scope=${{ github.workflow }} |