Author SHA1 Message Date
cflmy 7db401a836 Revert "ci: protected publish workflow (#10)"
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
This reverts commit 5838ba028e, reversing
changes made to 161600102d.
2026-11-27 20:34:39 +08:00
cflmy 5838ba028e ci: protected publish workflow (#10)
ci/woodpecker/release/release Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/tag/publish Pipeline failed
ci: protected publish workflow (#10)
2026-11-27 19:23:24 +08:00
cflmy a23b7ddb5d ci: add protected component publish workflow and immutable release helpers
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
Vendor the root component-release helpers, add source packaging plus
release-evidence, and split publish (tag/manual) from notify (release event).
2026-11-27 19:22:58 +08:00
marqdo-ci 161600102d ci: notify the root reconcile on a completed release
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/release/release 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:11 +08:00
marqdo-ci f4e51b504f ci: consume the shared shell CI image
ci/woodpecker/push/ci Pipeline is pending
ci/woodpecker/pr/ci Pipeline is pending
ci/woodpecker/manual/ci Pipeline is pending
2026-11-27 14:03:27 +08:00
2 changed files with 23 additions and 18 deletions

No files matched your search

+5 -18
View File
@@ -1,26 +1,13 @@
# Unified Woodpecker CI for a source-only Marqdo component.
#
# One base image and one published CLI/Bundle artifact are reused; this repo
# never downloads a Rust toolchain, builds marqdo-cli, or discovers sibling
# checkouts. The archive SHA-256 is pinned to the released rc.5 artifact.
# The published `marqdo-ci-shell` image is the only runtime dependency: one
# Ubuntu 24.04 base, the released CLI/Bundle, and common test tools. No image
# variance, apt install, Rust toolchain download, CLI rebuild or sibling checkout.
when:
event: [push, pull_request, manual]
steps:
test:
image: ubuntu:24.04
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.5
commands:
- apt-get update
- apt-get install -y --no-install-recommends ca-certificates curl git python3 build-essential
- |
set -eux
# Keep these as literal values: Woodpecker expands shell-style variables.
curl -fsSL --retry 3 -o /tmp/marqdo.tar.gz "https://git.cflmy.cn/cflmy/marqdo-cli/releases/download/v3.0.0-rc.5/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu.tar.gz"
echo "fd7a313e0ddaf38a9b1901ff2a9aa7b9a0a153e65522a9c0c60f01e2549f583b /tmp/marqdo.tar.gz" | sha256sum -c -
mkdir -p /opt/marqdo
tar -xzf /tmp/marqdo.tar.gz -C /opt/marqdo
export MARQDO_BIN=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/marqdo
export MARQDO_STDLIB_DIR=/opt/marqdo/marqdo-3.0.0-rc.5-x86_64-unknown-linux-gnu/stdlib
"$MARQDO_BIN" --version
cd "$CI_WORKSPACE"
sh scripts/test.sh
- sh scripts/test.sh
+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