mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Fix image tags, replace + with -
This commit is contained in:
parent
bddab9479c
commit
07028a3115
@ -5,7 +5,7 @@ cd $(dirname $0)/..
|
||||
|
||||
. ./scripts/version.sh
|
||||
|
||||
TAG=${TAG:-${VERSION}${SUFFIX}}
|
||||
TAG=${TAG:-${VERSION_TAG}${SUFFIX}}
|
||||
REPO=${REPO:-rancher}
|
||||
IMAGE_NAME=${IMAGE_NAME:-k3s}
|
||||
|
||||
|
@ -5,7 +5,7 @@ cd $(dirname $0)/..
|
||||
|
||||
if [ -z "$K3S_IMAGE" ]; then
|
||||
. ./scripts/version.sh
|
||||
TAG=${TAG:-${VERSION}${SUFFIX}}
|
||||
TAG=${TAG:-${VERSION_TAG}${SUFFIX}}
|
||||
REPO=${REPO:-rancher}
|
||||
IMAGE_NAME=${IMAGE_NAME:-k3s}
|
||||
export K3S_IMAGE=${REPO}/${IMAGE_NAME}:${TAG}
|
||||
|
@ -30,5 +30,6 @@ VERSION_CNIPLUGINS="v0.7.6-k3s1"
|
||||
if [[ -n "$GIT_TAG" ]]; then
|
||||
VERSION=$GIT_TAG
|
||||
else
|
||||
VERSION="$(sed -e 's/[-+].*//' <<< "$VERSION_K8S")+$COMMIT$DIRTY"
|
||||
VERSION="$(sed -e 's/[-+].*//' <<< "$VERSION_K8S")+$COMMIT"
|
||||
VERSION_TAG="$(sed -e 's/+/-/g' <<< "$VERSION")"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user