diff --git a/.changes/unreleased/Fixed-20240205-063850.yaml b/.changes/unreleased/Fixed-20240205-063850.yaml new file mode 100644 index 00000000..89154a4b --- /dev/null +++ b/.changes/unreleased/Fixed-20240205-063850.yaml @@ -0,0 +1,4 @@ +kind: Fixed +body: '[#201](https://github.com/overtrue/phplint/issues/201) : GitHub Action build + docker on fly with wrong version' +time: 2024-02-05T06:38:50.002039814Z diff --git a/Dockerfile b/Dockerfile index 7d746abe..83f9deae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # syntax=docker/dockerfile:1.4 ARG PHP_VERSION=8.2 +ARG PHPLINT_VERSION=9.0.7 FROM php:${PHP_VERSION}-cli-alpine @@ -16,7 +17,7 @@ USER appuser # Install Composer v2 then overtrue/phplint package COPY --from=composer/composer:2-bin /composer /usr/bin/composer ENV COMPOSER_ALLOW_SUPERUSER 1 -RUN composer global require --no-progress overtrue/phplint ^9.0 +RUN composer global require --no-progress overtrue/phplint ${PHPLINT_VERSION} # Following recommendation at https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#workdir