mirror of https://github.com/k3s-io/k3s
Browse Source
This is less effort than passing the tag across steps 🤷♂️
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
(cherry picked from commit 378edb939d
)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/10873/head
Brad Davidson
3 months ago
committed by
Brad Davidson
2 changed files with 17 additions and 1 deletions
@ -0,0 +1,15 @@
|
||||
#!/bin/bash |
||||
set -e |
||||
|
||||
cd $(dirname $0)/.. |
||||
|
||||
. ./scripts/version.sh |
||||
|
||||
TAG=${TAG:-${VERSION_TAG}${SUFFIX}} |
||||
REPO=${REPO:-rancher} |
||||
IMAGE_NAME=${IMAGE_NAME:-k3s} |
||||
|
||||
IMAGE=${REPO}/${IMAGE_NAME}:${TAG} |
||||
LATEST=${REPO}/${IMAGE_NAME}:latest |
||||
docker image tag ${IMAGE} ${LATEST} |
||||
echo Tagged ${IMAGE} as ${LATEST} |
Loading…
Reference in new issue