Skip to content

Commit 1e20a11

Browse files
committed
update buildkite commit with git commit when run local env
Signed-off-by: ernie-chang <[email protected]>
1 parent 7e432be commit 1e20a11

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.buildkite/scripts/setup_docker_env.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ setup_environment() {
1818
# shellcheck disable=1091
1919
source /etc/environment
2020

21-
# If the script run on the buildkite agent, will use $BUILDKITE_COMMIT as a tag.
22-
# Otherwise, if run on local vm, just use "tmp" as a tag.
23-
2421
# Cleanup of existing containers and images.
2522
echo "Starting cleanup for ${IMAGE_NAME}..."
2623
# Get all unique image IDs for the repository
@@ -57,7 +54,7 @@ setup_environment() {
5754
echo "Python dependencies installed"
5855
if [ -z "${BUILDKITE:-}" ]; then
5956
VLLM_COMMIT_HASH=""
60-
BUILDKITE_COMMIT="tmp"
57+
BUILDKITE_COMMIT=$(git log -n 1 --pretty="%H")
6158
else
6259
VLLM_COMMIT_HASH="28097d5638cc695f4644c411edac8eb05a03b39b"
6360
#VLLM_COMMIT_HASH=$(buildkite-agent meta-data get "VLLM_COMMIT_HASH" --default "")

0 commit comments

Comments
 (0)