Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3d9d76e5c | ||
|
|
14cd824427 | ||
|
|
1a8027beb1 | ||
|
|
a202a89ef4 | ||
|
|
9c50ca3921 | ||
|
|
83dce290e2 | ||
|
|
472c3462a4 | ||
|
|
db6f167fba | ||
|
|
cfe98c6339 | ||
|
|
890ed7a8b4 |
No files matched your search
+23
-17
@@ -1,26 +1,32 @@
|
||||
# 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 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.6
|
||||
commands:
|
||||
- sh scripts/test.sh
|
||||
|
||||
package:
|
||||
# Deterministic dual-format (tar.gz + zip) packaging self-check through the
|
||||
# single ecosystem release implementation (marqdo#96/#106). The root
|
||||
# repository no longer builds (marqdo#102); this component lane is the
|
||||
# release verification. Ordinary push/PR receives no publish token.
|
||||
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.6
|
||||
depends_on: [test]
|
||||
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
|
||||
set -eu
|
||||
kit=$(mktemp -d)
|
||||
trap 'rm -rf "$kit"' EXIT
|
||||
base="https://git.cflmy.cn/cflmy/marqdo/raw/commit/0137baca340eb7fa78adf76d6ef2ba204a4b3ecd"
|
||||
curl -fsSL --retry 3 "$base/scripts/component-release/release.py" -o "$kit/release.py"
|
||||
echo "c57f104423f4965cd35395fe8018c6a9bdfba57c0fc8fc94bc7e5e40100e1081 $kit/release.py" | sha256sum -c -
|
||||
python3 "$kit/release.py" check \
|
||||
--repository "$CI_REPO" --component-id std-system --kind stdlib \
|
||||
--allow modules --allow README.md
|
||||
@@ -0,0 +1,28 @@
|
||||
# Protected publish lane: tag events only.
|
||||
#
|
||||
# Single ecosystem component release implementation (marqdo#96 M1, dual-format
|
||||
# archives per marqdo#106), pinned by root commit and file sha256. All packaging
|
||||
# and publishing happens in this CI/CD lane; maintainer machines never publish.
|
||||
when:
|
||||
event: [tag]
|
||||
|
||||
steps:
|
||||
publish:
|
||||
image: git.cflmy.cn/cflmy/marqdo-ci-shell:3.0.0-rc.6
|
||||
environment:
|
||||
GITEA_PUBLISH_TOKEN:
|
||||
from_secret: gitea_publish_token
|
||||
commands:
|
||||
- |
|
||||
set -eu
|
||||
test -n "${CI_COMMIT_TAG:?publish requires a tag event}"
|
||||
kit=$(mktemp -d)
|
||||
trap 'rm -rf "$kit"' EXIT
|
||||
base="https://git.cflmy.cn/cflmy/marqdo/raw/commit/0137baca340eb7fa78adf76d6ef2ba204a4b3ecd"
|
||||
curl -fsSL --retry 3 "$base/scripts/component-release/release.py" -o "$kit/release.py"
|
||||
echo "c57f104423f4965cd35395fe8018c6a9bdfba57c0fc8fc94bc7e5e40100e1081 $kit/release.py" | sha256sum -c -
|
||||
exec python3 "$kit/release.py" publish \
|
||||
--repository "$CI_REPO" --component-id std-system --kind stdlib \
|
||||
--allow modules --allow README.md --tag "$CI_COMMIT_TAG" \
|
||||
--dependency "id=cli,source_sha=63776735e924ade279cdf59d5c733dc24bfdabbb,asset_sha256=8dc0b006302e03c23451b8ea9f8a0fcdae8bf67c80c546bee2434bf69755bfe3" \
|
||||
--note "Platform-independent artifact: .tar.gz (Linux/POSIX) and .zip (Windows/macOS) contain the same reviewed files byte for byte; both are built and published by this Woodpecker tag lane."
|
||||
Reference in new issue
Block a user