feat(ci): update Docker image to node:24-bookworm and add Docker CLI setup step

This commit is contained in:
2026-07-07 10:26:41 +08:00
parent 5030780cbe
commit ecb3f8fefe
2 changed files with 20 additions and 0 deletions
+13
View File
@@ -11,6 +11,8 @@ jobs:
publish:
name: Build and Push Docker Image
runs-on: gitea-label
container:
image: node:24-bookworm
env:
NEXT_TELEMETRY_DISABLED: "1"
SENTRY_UPLOAD_SOURCEMAPS: "0"
@@ -19,8 +21,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker CLI
run: |
set -eu
if ! command -v docker >/dev/null 2>&1; then
apt-get update
apt-get install -y --no-install-recommends docker.io
rm -rf /var/lib/apt/lists/*
fi
- name: Verify Docker
run: |
node --version
docker version
docker info