fix(ci): install git in miroir-release build-binaries step
The rust:1.87-slim image doesn't include git, but the build-binaries step runs 'git clone' which fails with exit code 127 (command not found). Install git along with other build dependencies before cloning. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
525ff7f9b4
commit
57e3b186b0
1 changed files with 3 additions and 1 deletions
|
|
@ -104,12 +104,14 @@ spec:
|
|||
# Ensure PATH includes cargo
|
||||
export PATH="/usr/local/cargo/bin:$PATH"
|
||||
|
||||
# Install git and build dependencies
|
||||
apt-get update -qq && apt-get install -y -qq git pkg-config libssl-dev musl-tools >/dev/null 2>&1
|
||||
|
||||
# Clone the repo at the tag to workspace for sharing with later steps
|
||||
git clone --depth 1 --branch "$TAG" https://github.com/jedarden/miroir.git /workspace/src
|
||||
cd /workspace/src
|
||||
|
||||
# Install musl target
|
||||
apt-get update -qq && apt-get install -y -qq pkg-config libssl-dev musl-tools >/dev/null 2>&1
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
|
||||
# Build the binaries
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue