[CI/Build] remove .github from .dockerignore, add dirty repo check (#9375)

This commit is contained in:
Daniele
2024-10-17 19:25:06 +02:00
committed by GitHub
parent 81ede99ca4
commit a2c71c5405
12 changed files with 54 additions and 17 deletions

14
tools/check_repo.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# Checks whether the repo is clean and whether tags are available (necessary to correctly produce vllm version at build time)
if ! git diff --quiet; then
echo "Repo is dirty" >&2
exit 1
fi
if ! git describe --tags; then
echo "No tags are present. Is this a shallow clone? git fetch --unshallow --tags" >&2
exit 1
fi