Skip to content

Commit

Permalink
Merge pull request #8 from stucki/fix-php-version
Browse files Browse the repository at this point in the history
Downgrade to supported PHP versions
  • Loading branch information
mcfedr authored Jan 24, 2023
2 parents 0c4ef7c + bcc74cb commit fc935d3
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions 1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM php:7.1-alpine

ENV PHP_CS_FIXER_VERISON 1.13.3
ENV PHP_CS_FIXER_VERSION 1.13.3
# hadolint ignore=DL3018
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERISON/php-cs-fixer.phar -o php-cs-fixer \
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERSION/php-cs-fixer.phar -o php-cs-fixer \
&& chmod +x php-cs-fixer \
&& mv php-cs-fixer /usr/local/bin/php-cs-fixer

Expand Down
4 changes: 2 additions & 2 deletions 2.19/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM php:8.0-alpine

ENV PHP_CS_FIXER_VERISON 2.19.3
ENV PHP_CS_FIXER_VERSION 2.19.3
# hadolint ignore=DL3018
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERISON/php-cs-fixer.phar -o php-cs-fixer \
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERSION/php-cs-fixer.phar -o php-cs-fixer \
&& chmod +x php-cs-fixer \
&& mv php-cs-fixer /usr/local/bin/php-cs-fixer

Expand Down
4 changes: 2 additions & 2 deletions 2/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM php:8.0-alpine

ENV PHP_CS_FIXER_VERISON 2.19.3
ENV PHP_CS_FIXER_VERSION 2.19.3
# hadolint ignore=DL3018
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERISON/php-cs-fixer.phar -o php-cs-fixer \
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERSION/php-cs-fixer.phar -o php-cs-fixer \
&& chmod +x php-cs-fixer \
&& mv php-cs-fixer /usr/local/bin/php-cs-fixer

Expand Down
6 changes: 3 additions & 3 deletions 3.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM php:8.2-alpine
FROM php:8.1-alpine

ENV PHP_CS_FIXER_VERISON 3.12.0
ENV PHP_CS_FIXER_VERSION 3.12.0
# hadolint ignore=DL3018
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERISON/php-cs-fixer.phar -o php-cs-fixer \
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERSION/php-cs-fixer.phar -o php-cs-fixer \
&& chmod +x php-cs-fixer \
&& mv php-cs-fixer /usr/local/bin/php-cs-fixer

Expand Down
6 changes: 3 additions & 3 deletions 3.13/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM php:8.2-alpine
FROM php:8.1-alpine

ENV PHP_CS_FIXER_VERISON 3.13.2
ENV PHP_CS_FIXER_VERSION 3.13.2
# hadolint ignore=DL3018
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERISON/php-cs-fixer.phar -o php-cs-fixer \
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERSION/php-cs-fixer.phar -o php-cs-fixer \
&& chmod +x php-cs-fixer \
&& mv php-cs-fixer /usr/local/bin/php-cs-fixer

Expand Down
6 changes: 3 additions & 3 deletions 3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM php:8-alpine
FROM php:8.0-alpine

ENV PHP_CS_FIXER_VERISON 3.13.2
ENV PHP_CS_FIXER_VERSION 3.13.2
# hadolint ignore=DL3018
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERISON/php-cs-fixer.phar -o php-cs-fixer \
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERSION/php-cs-fixer.phar -o php-cs-fixer \
&& chmod +x php-cs-fixer \
&& mv php-cs-fixer /usr/local/bin/php-cs-fixer

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM php:%%PHP_VERSION%%-alpine

ENV PHP_CS_FIXER_VERISON %%VARIANT%%
ENV PHP_CS_FIXER_VERSION %%VARIANT%%
# hadolint ignore=DL3018
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERISON/php-cs-fixer.phar -o php-cs-fixer \
RUN curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERSION/php-cs-fixer.phar -o php-cs-fixer \
##<verify>##
&& curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERISON/php-cs-fixer.phar.asc -o php-cs-fixer.phar.asc \
&& curl -L https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v$PHP_CS_FIXER_VERSION/php-cs-fixer.phar.asc -o php-cs-fixer.phar.asc \
&& apk add --no-cache --virtual .build-deps gnupg \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-key BBAB5DF0A0D6672989CF1869E82B2FB314E9906E \
&& gpg --verify php-cs-fixer.phar.asc php-cs-fixer \
Expand Down
6 changes: 3 additions & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ declare -A variants=(
)

declare -A php_version=(
['3']='8'
['3.13']='8.2'
['3.12']='8.2'
['3']='8.0'
['3.13']='8.1'
['3.12']='8.1'
['2']='8.0'
['2.19']='8.0'
['1']='7.1'
Expand Down

0 comments on commit fc935d3

Please sign in to comment.