Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3', '8.4']
php-version: ['8.1', '8.2', '8.3', '8.4']
image:
# Full pipe image (last Dockerfile stage)
- target: ''
Expand All @@ -38,7 +38,6 @@ jobs:
push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/staging' }}
build-args: |
PHP_VERSION=${{ matrix.php-version }}
ALPINE_VERSION=${{ vars.ALPINE_VERSION }}
# Tags: 8.4, 8.4-runtime (main); 8.4-experimental, 8.4-runtime-experimental (staging)
tags: |
type=raw,value=${{ matrix.php-version }}${{ matrix.image.suffix }}${{ github.ref_name == 'staging' && '-experimental' || '' }}
Expand Down
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
ARG PHP_VERSION
ARG ALPINE_VERSION

FROM busybox:latest AS validator
ARG ALPINE_VERSION
RUN : "${ALPINE_VERSION:?ALPINE_VERSION build argument is required}" && touch /validated

FROM php:${PHP_VERSION}-alpine${ALPINE_VERSION} AS standards-runtime
COPY --from=validator /validated /tmp/.validated
# Use the latest alpine version that is compatible with the specified PHP version.
FROM php:${PHP_VERSION}-cli-alpine AS standards-runtime

Check warning on line 4 in Dockerfile

View workflow job for this annotation

GitHub Actions / PHP 8.3-runtime / build-and-push

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG php:${PHP_VERSION}-cli-alpine results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 4 in Dockerfile

View workflow job for this annotation

GitHub Actions / PHP 8.3 / build-and-push

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG php:${PHP_VERSION}-cli-alpine results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 4 in Dockerfile

View workflow job for this annotation

GitHub Actions / PHP 8.2-runtime / build-and-push

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG php:${PHP_VERSION}-cli-alpine results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 4 in Dockerfile

View workflow job for this annotation

GitHub Actions / PHP 8.4 / build-and-push

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG php:${PHP_VERSION}-cli-alpine results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 4 in Dockerfile

View workflow job for this annotation

GitHub Actions / PHP 8.2 / build-and-push

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG php:${PHP_VERSION}-cli-alpine results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 4 in Dockerfile

View workflow job for this annotation

GitHub Actions / PHP 8.1 / build-and-push

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG php:${PHP_VERSION}-cli-alpine results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 4 in Dockerfile

View workflow job for this annotation

GitHub Actions / PHP 8.4-runtime / build-and-push

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG php:${PHP_VERSION}-cli-alpine results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

Check warning on line 4 in Dockerfile

View workflow job for this annotation

GitHub Actions / PHP 8.1-runtime / build-and-push

Default value for global ARG results in an empty or invalid base image name

InvalidDefaultArgInFrom: Default value for ARG php:${PHP_VERSION}-cli-alpine results in empty or invalid base image name More info: https://docs.docker.com/go/dockerfile/rule/invalid-default-arg-in-from/

# Install system dependencies
RUN apk update && apk add --no-cache \
Expand Down
Loading