diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index f4d3641..47dbc9e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,9 +3,7 @@ { "name": "texthtml/maybe", "build": { - "dockerfile": "../.docker/Dockerfile", - // Update 'VARIANT' to pick an Alpine version: 3.12, 3.13, 3.14, 3.15 - "args": { "VARIANT": "3.14" } + "dockerfile": "../.docker/Dockerfile" }, "workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind", "workspaceFolder": "/app", diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 965dbc0..606e474 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -20,9 +20,18 @@ RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && \ apt-get install -y libzip-dev && \ docker-php-ext-install zip -RUN pecl install xdebug && docker-php-ext-enable xdebug - -RUN curl -sLo /usr/bin/phpdoc https://phpdoc.org/phpDocumentor.phar && chmod +x /usr/bin/phpdoc +# xdebug >= 3.6 is required for PHP 8.6 (pecl is no longer shipped in the php image) +# renovate: datasource=github-tags depName=xdebug/xdebug versioning=pep440 +ARG XDEBUG_VERSION=3.6.0alpha1 +RUN docker-php-source extract && \ + mkdir /usr/src/php/ext/xdebug && \ + curl -fsSL https://github.com/xdebug/xdebug/archive/refs/tags/${XDEBUG_VERSION}.tar.gz | tar xz --strip-components=1 -C /usr/src/php/ext/xdebug && \ + docker-php-ext-install xdebug && \ + docker-php-source delete + +# renovate: datasource=github-releases depName=phpDocumentor/phpDocumentor extractVersion=^v(?.*)$ +ARG PHPDOCUMENTOR_VERSION=3.10.0 +RUN curl -fsSLo /usr/bin/phpdoc https://github.com/phpDocumentor/phpDocumentor/releases/download/v${PHPDOCUMENTOR_VERSION}/phpDocumentor.phar && chmod +x /usr/bin/phpdoc RUN mkdir /app && chown ${USERNAME}: /app diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 7092acb..d910267 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -6,6 +6,10 @@ on: pull_request: branches: [ "main" ] +env: + # renovate: datasource=docker depName=php + PHP_VERSION: "8.3" + jobs: build: @@ -20,7 +24,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.3 + php-version: ${{ env.PHP_VERSION }} ini-values: zend.assertions=1, assert.exception=1 - name: Validate composer.json and composer.lock diff --git a/renovate.json b/renovate.json index 5db72dd..b8b0912 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,11 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:recommended" - ] + "config:recommended", + "customManagers:githubActionsVersions", + "customManagers:dockerfileVersions" + ], + "lockFileMaintenance": { + "enabled": true + } }