Update phpstan/phpstan from 1.12.13 to 1.12.14 #1851
Workflow file for this run
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: buildx | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
buildx: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
fail-fast: true | |
matrix: | |
php-version: | |
- "7.3" | |
- "7.4" | |
- "8.0" | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
- "8.4" | |
composer-version: | |
- "2" | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Log in to the Container registry | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
continue-on-error: true | |
id: buildx1 | |
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: . | |
push: ${{ github.event_name != 'pull_request' }} | |
file: ${{ steps.file.outputs.FILE }} | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.php-version }}-multi-composer-${{ matrix.composer-version }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-args: | | |
PHP_VERSION=${{ matrix.php-version }} | |
COMPOSER_VERSION=${{ matrix.composer-version }} | |
- name: Wait to retry | |
if: steps.buildx1.outcome != 'success' | |
run: | | |
sleep 60 | |
- name: Build and push Docker image | |
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 | |
if: steps.buildx1.outcome != 'success' | |
with: | |
platforms: linux/amd64,linux/arm64 | |
context: . | |
push: ${{ github.event_name != 'pull_request' }} | |
file: ${{ steps.file.outputs.FILE }} | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ matrix.php-version }}-multi-composer-${{ matrix.composer-version }} | |
labels: ${{ steps.meta.outputs.labels }} | |
build-args: | | |
PHP_VERSION=${{ matrix.php-version }} | |
COMPOSER_VERSION=${{ matrix.composer-version }} | |
- | |
name: Clear | |
if: always() && github.event_name != 'pull_request' | |
run: | | |
rm -f ${HOME}/.docker/config.json |