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.
8 lines
278 B
Bash
Executable File
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
|