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