ci: keep the pinned archive path literal
Woodpecker expands ${...} in commands, which left the version empty. Use the
exact released archive path/SHA so the unified lane is reproducible.
This commit was merged in pull request #5.
This commit is contained in:
1 parent
b702f4ff03
commit
bc29d6a2ba
1 file changed
+5
-8
+5
-8
@@ -14,16 +14,13 @@ steps:
|
||||
- apt-get install -y --no-install-recommends ca-certificates curl git python3 build-essential
|
||||
- |
|
||||
set -eux
|
||||
version="3.0.0-rc.5"
|
||||
archive_sha="fd7a313e0ddaf38a9b1901ff2a9aa7b9a0a153e65522a9c0c60f01e2549f583b"
|
||||
name="marqdo-${version}-x86_64-unknown-linux-gnu"
|
||||
base="https://git.cflmy.cn/cflmy/marqdo-cli/releases/download/v3.0.0-rc.5"
|
||||
curl -fsSL --retry 3 -o /tmp/marqdo.tar.gz "$base/$name.tar.gz"
|
||||
echo "$archive_sha /tmp/marqdo.tar.gz" | sha256sum -c -
|
||||
# Keep these as literal values: Woodpecker expands ${...} in commands.
|
||||
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/$name/marqdo"
|
||||
export MARQDO_STDLIB_DIR="/opt/marqdo/$name/stdlib"
|
||||
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
|
||||
Reference in new issue
Block a user