Files
MoShiro/ci/build-release-web.sh
justme 4f5a4aa3a9
ci/woodpecker/push/verify Pipeline failed
ci/woodpecker/push/dev-image Pipeline failed
ci/woodpecker/push/web-build Pipeline failed
ci: stop the whole pipeline on the first failure and report why the restore image is missing [CI]
Every Linux step now runs under ci/guard-step.py. The first step that fails, is cancelled or times out marks the pipeline; running steps get SIGTERM (so traps release flock and Buildah state) then SIGKILL, steps that have not started exit at once, and any process a step leaves behind is killed. A pipeline deadline is the last resort. build-linux-agent.sh now prints the lookup error, store configuration and the restore images present when the prepared restore image cannot be found.
2026-10-21 14:48:40 +08:00

8 lines
278 B
Bash
Executable File

#!/usr/bin/env bash
# 发布构建的前端:版本取自 tag,先写进工作区,前端才会带上对的版本。
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/.."
bash ci/version.sh apply
npm ci --prefix web --prefer-offline
timeout 600 npm run build --prefix web