From 1170aa1cb256b0505ac3500b3a5ea5f1a3409182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Beli=C3=ABn?= Date: Sun, 20 Oct 2024 21:18:36 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8FUpgrade=20to=20Node.js=2022?= =?UTF-8?q?=20and=20PHP=208.3=20(#1461)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jonathan Beliƫn <1150563+jbelien@users.noreply.github.com> --- .github/workflows/ci.yml | 4 ++-- .platform.app.yaml | 2 +- Dockerfile | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85684981b..9d9076e4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - php-versions: [ '8.2', '8.3' ] # See https://www.php.net/supported-versions.php + php-versions: [ '8.3' ] # See https://www.php.net/supported-versions.php steps: - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 @@ -46,7 +46,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [ 16.x, 18.x ] # See https://nodejs.org/en/about/releases/ + node-version: [ 22.x ] # See https://nodejs.org/en/about/releases/ steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} diff --git a/.platform.app.yaml b/.platform.app.yaml index f3b25f648..d938cd3a9 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -41,7 +41,7 @@ hooks: curl -fs https://get.symfony.com/cloud/configurator | bash - NODE_VERSION=18 symfony-build + NODE_VERSION=22 symfony-build deploy: | set -x -e diff --git a/Dockerfile b/Dockerfile index 218d7ad77..647ebf939 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Node.js (Build assets) -FROM node:16-alpine as node +FROM node:22-alpine AS node WORKDIR /assets @@ -11,11 +11,11 @@ RUN npm run build # Composer -FROM composer:2 as composer +FROM composer:2 AS composer # Application -FROM php:8.1-apache as app +FROM php:8.3-apache AS app ## Install PHP dependencies