Skip to content

chore(deps): update actions/checkout action to v4.2.1 (#528) #946

chore(deps): update actions/checkout action to v4.2.1 (#528)

chore(deps): update actions/checkout action to v4.2.1 (#528) #946

Workflow file for this run

name: Docker Build
'on':
push:
tags: [ '*.*.*-*' ]
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
env:
DOCKER_IMAGE: etriasnl/dev-php-fpm
jobs:
build:
runs-on: ubuntu-latest
steps:
-
uses: actions/[email protected]
-
uses: docker/[email protected]
with:
buildkitd-config-inline: |
[registry."docker.io"]
mirrors = ["mirror.gcr.io"]
-
id: build
uses: docker/[email protected]
with:
context: .
load: true
# https://docs.docker.com/build/ci/github-actions/cache/#github-cache
cache-from: type=gha
cache-to: type=gha,mode=max
-
run: |
set -eu
docker run --rm '${{ steps.build.outputs.imageid }}' php -v
docker run --rm '${{ steps.build.outputs.imageid }}' php -m
docker run --rm '${{ steps.build.outputs.imageid }}' envsub --version
docker run --rm '${{ steps.build.outputs.imageid }}' composer --version
docker run --rm '${{ steps.build.outputs.imageid }}' composer --working-dir=/usr/local/etc/tools normalize --dry-run
docker run --rm '${{ steps.build.outputs.imageid }}' pt-online-schema-change --version
docker run --rm '${{ steps.build.outputs.imageid }}' nats --version
docker run --rm '${{ steps.build.outputs.imageid }}' node --version
docker run --rm '${{ steps.build.outputs.imageid }}' yarn --version
docker run --rm '${{ steps.build.outputs.imageid }}' phplint --version
docker run --rm '${{ steps.build.outputs.imageid }}' php-cs-fixer --version --version
docker run --rm '${{ steps.build.outputs.imageid }}' phpunit --version
docker run --rm '${{ steps.build.outputs.imageid }}' psalm --version
docker run --rm '${{ steps.build.outputs.imageid }}' rector --version
docker run --rm '${{ steps.build.outputs.imageid }}' yamllint --version
docker run --rm '${{ steps.build.outputs.imageid }}' s3cmd --version
docker run --rm '${{ steps.build.outputs.imageid }}' shellcheck --version
docker run --rm '${{ steps.build.outputs.imageid }}' dotenv-linter --version
-
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
if: github.ref_type == 'tag'
-
id: meta
uses: docker/[email protected]
with:
images: ${{ env.DOCKER_IMAGE }}
if: github.ref_type == 'tag'
-
uses: docker/[email protected]
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
if: github.ref_type == 'tag'