mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-04 03:19:36 +00:00
Tag PR image build as latest before scanning
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>
This commit is contained in:
committed by
Brad Davidson
parent
88d5576be6
commit
703e7697b0
15
scripts/tag-image-latest
Executable file
15
scripts/tag-image-latest
Executable file
@@ -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}
|
||||
Reference in New Issue
Block a user