fix deploy: install git in build-package step
Some checks failed
ci/woodpecker/push/deploy Pipeline was successful
ci/woodpecker/push/ci Pipeline failed

The uv slim image lacks git, which is needed for commit-count
based version stamping.
This commit is contained in:
kert
2026-02-28 15:22:35 -05:00
parent 767cb187d9
commit b92d78d8cc

View File

@@ -12,6 +12,7 @@ steps:
- name: build-package
image: ghcr.io/astral-sh/uv:python3.13-bookworm-slim
commands:
- apt-get update -qq && apt-get install -y -qq git > /dev/null
# Stamp a unique version: base version + .dev{commit_count}
- COMMIT_NUM=$(git rev-list --count HEAD)
- BASE=$(grep '^version' pyproject.toml | head -1 | sed 's/.*"\(.*\)"/\1/')