Author SHA1 Message Date
marqdo-ci a1a223f53f ci: notify the root reconcile on a completed release
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/push/main Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/pr/main Pipeline is pending
ci/woodpecker/manual/ci Pipeline was successful
Release event fast path: validate the secret is present, then ask the root
manual `reconcile` workflow to check the authoritative Gitea release. The call
is only a hint; correctness and lost-notification recovery stay in the root
reconcile cron/script.
2026-11-27 14:18:04 +08:00
marqdo-ci 917c12e760 ci: consume the shared Rust CI image
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/push/main Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/pr/main Pipeline is pending
Replaces per-run rustup/apt/CLI setup with the published marqdo-ci-rust image
(pinned toolchain, rustfmt/clippy, warm cargo cache and released CLI/Bundle).
2026-11-27 14:15:02 +08:00
2 changed files with 41 additions and 0 deletions

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
# Unified Woodpecker CI for a Rust Marqdo Tool.
#
# One published `marqdo-ci-rust` image contains the pinned toolchain and the
# released CLI/Bundle (`MARQDO_BIN`, `MARQDO_STDLIB_DIR` preset); the lane only
# runs this repository's own checks. No per-run rustup/apt/CLI download.
when:
event: [push, pull_request, manual]
steps:
test:
image: git.cflmy.cn/cflmy/marqdo-ci-rust:3.0.0-rc.5
environment:
MARQDO_BIN: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo
MARQDO_STDLIB_DIR: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/stdlib
MARQDO_TEST_BIN: /opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo
MARQDO_TOOL_HOME: /tmp/marqdo-tool-home
commands:
- python3 tools/ci/test_release_metadata.py
- cargo fmt --all -- --check
- cargo clippy --workspace --all-targets --locked -- -D warnings
- cargo test --workspace --locked
- cargo build --release --locked
- target/release/marqdo-knowledge --help
+18
View File
@@ -0,0 +1,18 @@
# Fast-path notification: a completed Gitea release asks the root reconcile
# workflow to check it. The payload is only a hint; the root reconcile verifies
# the release/assets from the authoritative Gitea API. A lost call is recovered
# by the root `release-reconcile` cron.
when:
event: [release]
steps:
notify:
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5
environment:
WOODPECKER_TOKEN:
from_secret: woodpecker_token
commands:
- |
set -eu
test -n "${WOODPECKER_TOKEN:?woodpecker_token secret missing}"
curl -fsS -X POST -H "Authorization: Bearer $WOODPECKER_TOKEN" -H "Content-Type: application/json" -d '{"branch":"main","workflow":"reconcile"}' https://ci.cflmy.cn/api/repos/6/pipelines