From 3e018785843b79f13fc3a5293f867853a809d444 Mon Sep 17 00:00:00 2001 From: marqdo-ci Date: Fri, 27 Nov 2026 14:03:40 +0800 Subject: [PATCH] ci: consume the shared shell CI image --- .woodpecker/ci.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.woodpecker/ci.yml b/.woodpecker/ci.yml index fc04cc5..c3d2f28 100644 --- a/.woodpecker/ci.yml +++ b/.woodpecker/ci.yml @@ -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 -- 2.54.1