Skip to content

PHPStan 1.10.61

PHPStan 1.10.61 #193

Workflow file for this run

# From:
# https://www.docker.com/blog/docker-github-actions/
# https://github.com/metcalfc/docker-action-examples
name: Docker image stable
on:
push:
tags:
- '1.*'
jobs:
docker:
runs-on: ubuntu-latest
concurrency: docker-stable-${{ 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"
- docker-file: "./docker/Dockerfile.php.8.3"
image-tag-suffix: "-php8.3"
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: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- 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=${{ steps.get_version.outputs.VERSION }}
push: true
tags: "ghcr.io/phpstan/phpstan:latest${{ matrix.image-tag-suffix }},ghcr.io/phpstan/phpstan:1${{ matrix.image-tag-suffix }},ghcr.io/phpstan/phpstan:${{ steps.get_version.outputs.VERSION }}${{ matrix.image-tag-suffix }}"
platforms: linux/amd64,linux/arm64
cache-from: type=gha, scope=${{ github.workflow }}
cache-to: type=gha, scope=${{ github.workflow }}