ci: build the dev images in parallel with the checks and gate only the push [CI]
ci/woodpecker/push/web-build Pipeline was successful
ci/woodpecker/push/verify Pipeline was successful
ci/woodpecker/push/dev-image Pipeline failed

This commit is contained in:
justme committed 2026-10-19 13:58:21 +08:00
1 parent b33e50696d
commit 1ccbb847b5
6 files changed
+99 -8

No files matched your search

+4
View File
@@ -96,6 +96,7 @@ if [[ "$component" == backend ]]; then
ZOT_IMAGE_REPOSITORY="$repository" \
IMAGE_TAGS="latest,$image_version" \
IMAGE_PUBLISH=true \
MOSHIRO_PUSH_GATE="$root/ci/wait-for-checks.sh" \
run_bounded 30m bash "$root/ci/release-linux.sh" "$arch" backend
exit 0
fi
@@ -150,6 +151,9 @@ run_bounded 30m buildah bud --layers --network host --tls-verify=true --ulimit n
-f "$context/Containerfile" \
-t "$local_image" "$context"
# 构建和测试是并行的:镜像已经好了,推送之前等 verify 和 web-build 都过(任何一个失败就不推)
bash "$root/ci/wait-for-checks.sh"
logged_in=false
for attempt in 1 2 3 4; do
if run_bounded 2m buildah login --tls-verify=true --username "$ZOT_USERNAME" --password-stdin "$registry" <<< "$ZOT_SECRET" >/dev/null; then