Skip to content

Commit 0805c51

Browse files
committed
Separate out ci- tagging logic
1 parent 5513dfc commit 0805c51

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

build

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,19 +233,20 @@ function do_push() {
233233
}
234234

235235
function do_tag() {
236-
local tag
236+
local tag token version
237237
TAG_PREFIX=
238238
echo "Pulling latest images"
239239
for tag in base latest "${BASE_VARIANTS[@]}" "${VARIANTS[@]}"; do
240240
tag="${tag,,}"
241241
tag="$(image_name "${tag}")"
242242
docker pull "$tag"
243243
done
244-
echo "Tagging ci- images"
244+
version="$(date +%y.%m)"
245+
echo "Tagging version $version"
245246
for tag in base latest "${BASE_VARIANTS[@]}" "${VARIANTS[@]}"; do
246247
tag="${tag,,}"
247248
tag="$(image_name "${tag}")"
248-
new_tag="${tag/:/:ci-}"
249+
new_tag="${tag/:/:v$version-}"
249250
docker tag "$tag" "$new_tag"
250251
docker push "$new_tag"
251252
done

0 commit comments

Comments
 (0)