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
2 changes: 2 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build and Push Docker Image

on:
pull_request:
schedule:
- cron: '0 15 * * 0'
push:
branches:
- main
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG PHP_VERSION

# 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.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-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 / 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.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-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-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 Expand Up @@ -47,7 +47,8 @@
# These are for JavaScript linting (eslint) which this pipe doesn't use.
# Leaving them triggers false positive security alerts (e.g. GHSA-673x-qfjx-j475)
# since the package-lock.json references vulnerable npm packages that are never installed.
RUN rm -f /composer/vendor/magento/magento-coding-standard/package*.json
RUN rm -f /composer/vendor/magento/magento-coding-standard/package*.json \
/composer/vendor/magento/magento-coding-standard/eslint/package*.json

FROM standards-runtime

Expand Down
Loading