forked from phoenix-oss/llama-stack-mirror
add pypi version to docker tag
This commit is contained in:
parent
47e7c2dc15
commit
218803b7c8
1 changed files with 7 additions and 0 deletions
|
@ -140,6 +140,13 @@ if command -v selinuxenabled &>/dev/null && selinuxenabled; then
|
||||||
DOCKER_OPTS="$DOCKER_OPTS --security-opt label=disable"
|
DOCKER_OPTS="$DOCKER_OPTS --security-opt label=disable"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$TEST_PYPI_VERSION" ]; then
|
||||||
|
image_name="$image_name-test-$TEST_PYPI_VERSION"
|
||||||
|
else
|
||||||
|
URL="https://pypi.org/pypi/llama-stack/json"
|
||||||
|
image_name="$image_name-$(curl -s $URL | jq -r '.info.version')"
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
$DOCKER_BINARY build $DOCKER_OPTS -t $image_name -f "$TEMP_DIR/Dockerfile" "$REPO_DIR" $mounts
|
$DOCKER_BINARY build $DOCKER_OPTS -t $image_name -f "$TEMP_DIR/Dockerfile" "$REPO_DIR" $mounts
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue