Skip to content

Commit

Permalink
fix issue #201
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Feb 5, 2024
1 parent 87fce46 commit a0407dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .changes/unreleased/Fixed-20240205-063850.yaml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down

0 comments on commit a0407dc

Please sign in to comment.