From 72439f43c6830610b57209d23db16bc2b37a9c85 Mon Sep 17 00:00:00 2001 From: Adelin Popa Date: Tue, 7 Jul 2026 09:16:56 +0300 Subject: [PATCH] ci: pin Docusaurus build Node.js version Use the Node.js 16 setup script. Keep the Docusaurus 2.1 image off newer Node.js releases. Signed-off-by: Adelin Popa --- .github/workflows/deployment.yml | 3 ++- .github/workflows/pr-deployment.yml | 3 ++- Dockerfile | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index b7c30fd1..d9b61f7b 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -28,7 +28,8 @@ jobs: load: true tags: essentials-security/docusaurus:latest cache-from: type=gha - cache-to: type=gha + # Cache export is best-effort; the loaded image is the build output. + cache-to: type=gha,ignore-error=true - name: Load image run: | diff --git a/.github/workflows/pr-deployment.yml b/.github/workflows/pr-deployment.yml index 9f83e885..723f4024 100644 --- a/.github/workflows/pr-deployment.yml +++ b/.github/workflows/pr-deployment.yml @@ -36,7 +36,8 @@ jobs: load: true tags: essentials-security/docusaurus:latest cache-from: type=gha - cache-to: type=gha + # Cache export is best-effort; the loaded image is the build output. + cache-to: type=gha,ignore-error=true - name: Load Image run: | diff --git a/Dockerfile b/Dockerfile index 92ce18ac..a388813a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +# hadolint global ignore=DL3009,DL3013,DL3042,DL4006,DL3016,DL3059 FROM ghcr.io/open-education-hub/openedu-builder:0.5.1 # Install tools. @@ -7,8 +8,8 @@ RUN apt-get update && \ # Install MarkdownPP using pip. RUN pip install MarkdownPP -# Install node LTS (16) -RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ +# Install Node.js 16, which is supported by Docusaurus 2.1. +RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \ apt-get update && \ apt-get install -yqq nodejs