From 6c79913893197af8c9a555bc9278d1df5225ec2c Mon Sep 17 00:00:00 2001 From: fly6516 Date: Mon, 16 Dec 2024 12:10:25 +0800 Subject: [PATCH] manual install nodejs --- .gitea/workflows/ci.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 363b9f0..10b6e55 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -12,9 +12,17 @@ jobs: build: runs-on: ubuntu-latest container: - image: dockerp.com/eclipse-temurin:17-jdk-centos7 # 使用带有 JDK 17 的 Docker 镜像 + image: dockerp.com/openjdk:17-jdk-slim # 使用带有 JDK 17 的 Docker 镜像 steps: + - name: Install Node.js + run: | + apt-get update && apt-get install -y curl + curl -fsSL https://deb.nodesource.com/setup_18.x | bash - + apt-get install -y nodejs + node -v + npm -v + - name: Checkout code uses: http://fly6516.synology.me:4000/Gitea_Action/checkout@v2