Skip to content
Open
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
4 changes: 2 additions & 2 deletions Dockerfiles/Dockerfile.latest
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN set -eux \
coreutils \
curl \
git \
&& git clone https://github.com/squizlabs/PHP_CodeSniffer
&& git clone https://github.com/PHPCSStandards/PHP_CodeSniffer

ARG PBF_VERSION
RUN set -eux \
Expand All @@ -20,7 +20,7 @@ RUN set -eux \
VERSION="$( git tag | grep -E "^v?${PBF_VERSION}\.[.0-9]+\$" | sort -V | tail -1 )"; \
fi \
&& echo "Version: ${VERSION}" \
&& curl -sS -L https://github.com/squizlabs/PHP_CodeSniffer/releases/download/${VERSION}/phpcbf.phar -o /phpcbf.phar \
&& curl -sS -L https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/download/${VERSION}/phpcbf.phar -o /phpcbf.phar \
&& chmod +x /phpcbf.phar \
&& mv /phpcbf.phar /usr/bin/phpcbf \
\
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ _test-phpcbf-version:
@if [ "$(PBF_VERSION)" = "latest" ]; then \
echo "Fetching latest version from GitHub"; \
LATEST="$$( \
curl -L -sS https://github.com/squizlabs/PHP_CodeSniffer/releases \
curl -L -sS https://github.com/PHPCSStandards/PHP_CodeSniffer/releases \
| tac | tac \
| grep -Eo '/[.0-9]+?\.[.0-9]+"' \
| grep -Eo '[.0-9]+' \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ View **[Dockerfiles](https://github.com/cytopia/docker-phpcbf/blob/master/Docker

**Available Architectures:** `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6`

Tiny Alpine-based multistage-builld dockerized version of [phpcbf](https://github.com/squizlabs/PHP_CodeSniffer)<sup>[1]</sup>.
Tiny Alpine-based multistage-builld dockerized version of [phpcbf](https://github.com/PHPCSStandards/PHP_CodeSniffer)<sup>[1]</sup>.
The image is built nightly against multiple stable versions and pushed to Dockerhub.

<sup>[1] Official project: https://github.com/squizlabs/PHP_CodeSniffer</sup>
<sup>[1] Official project: https://github.com/PHPCSStandards/PHP_CodeSniffer</sup>

## :whale: Available Docker image versions

Expand Down