fix tag name splitting in docker build script

This commit is contained in:
Nick Sweeting 2024-10-05 03:56:20 -07:00
parent db10a2142e
commit eccf123f69
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ which docker > /dev/null || exit 1
which jq > /dev/null || exit 1 which jq > /dev/null || exit 1
# which pdm > /dev/null || exit 1 # which pdm > /dev/null || exit 1
declare -a TAG_NAMES="$*" declare -a TAG_NAMES=("$@")
BRANCH_NAME="${1:-$(git rev-parse --abbrev-ref HEAD)}" BRANCH_NAME="${1:-$(git rev-parse --abbrev-ref HEAD)}"
VERSION="$(grep '^version = ' "${REPO_DIR}/pyproject.toml" | awk -F'"' '{print $2}')" VERSION="$(grep '^version = ' "${REPO_DIR}/pyproject.toml" | awk -F'"' '{print $2}')"
GIT_SHA=sha-"$(git rev-parse --short HEAD)" GIT_SHA=sha-"$(git rev-parse --short HEAD)"

View file

@ -13,7 +13,7 @@ IFS=$' '
REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )" REPO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )"
cd "$REPO_DIR" cd "$REPO_DIR"
declare -a TAG_NAMES="$*" declare -a TAG_NAMES=("$@")
BRANCH_NAME="${1:-$(git rev-parse --abbrev-ref HEAD)}" BRANCH_NAME="${1:-$(git rev-parse --abbrev-ref HEAD)}"
VERSION="$(grep '^version = ' "${REPO_DIR}/pyproject.toml" | awk -F'"' '{print $2}')" VERSION="$(grep '^version = ' "${REPO_DIR}/pyproject.toml" | awk -F'"' '{print $2}')"
GIT_SHA=sha-"$(git rev-parse --short HEAD)" GIT_SHA=sha-"$(git rev-parse --short HEAD)"