diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51a1c8b..41cc305 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,5 +49,3 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - build-args: | - VERSION=4.0.4 diff --git a/Dockerfile b/Dockerfile index cf2f5e3..2cc255a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,17 +4,21 @@ FROM base AS builder RUN apk add --no-cache --virtual .mbdeps $PHPIZE_DEPS oniguruma-dev && docker-php-ext-install mbstring -RUN curl -OL https://phar.io/releases/phive.phar && \ - curl -OL https://phar.io/releases/phive.phar.asc && \ +# renovate: datasource=github-releases depName=phar-io/phive +ARG PHIVE_VERSION=0.16.0 + +RUN curl -fsSL -o phive.phar https://github.com/phar-io/phive/releases/download/${PHIVE_VERSION}/phive-${PHIVE_VERSION}.phar && \ + curl -fsSL -o phive.phar.asc https://github.com/phar-io/phive/releases/download/${PHIVE_VERSION}/phive-${PHIVE_VERSION}.phar.asc && \ apk add --no-cache --virtual .gpg gpg gpg-agent && \ gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x9D8A98B29B2D5D79 && \ gpg --verify phive.phar.asc phive.phar && \ chmod +x phive.phar -ARG VERSION +# renovate: datasource=packagist depName=squizlabs/php_codesniffer +ARG PHPCS_VERSION=4.0.4 -RUN ./phive.phar install --trust-gpg-keys 5CB4F778BF9BC4FB67AE511D96E91A992CF22FF4 phpcs@$VERSION -RUN ./phive.phar install --trust-gpg-keys 5CB4F778BF9BC4FB67AE511D96E91A992CF22FF4 phpcbf@$VERSION +RUN ./phive.phar install --trust-gpg-keys 5CB4F778BF9BC4FB67AE511D96E91A992CF22FF4 phpcs@$PHPCS_VERSION +RUN ./phive.phar install --trust-gpg-keys 5CB4F778BF9BC4FB67AE511D96E91A992CF22FF4 phpcbf@$PHPCS_VERSION RUN /tools/phpcs --version RUN /tools/phpcbf --version diff --git a/renovate.json b/renovate.json index 5db72dd..0b293f6 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,7 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:recommended" + "config:recommended", + "customManagers:dockerfileVersions" ] }