7717bb6a84
The rocm CI step for RCs was incorrectly tagging them as the latest rocm build. The multiarch manifest was incorrectly tagged twice (with and without the prefix "v"). Static windows artifacts weren't being carried between build jobs. This also fixes the latest tagging script.
13 lines
603 B
Bash
Executable file
13 lines
603 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
# For developers, you can override the DOCKER_ORG to generate multiarch manifests
|
|
# DOCKER_ORG=jdoe VERSION=0.1.30 ./scripts/tag_latest.sh
|
|
DOCKER_ORG=${DOCKER_ORG:-"ollama"}
|
|
FINAL_IMAGE_REPO=${FINAL_IMAGE_REPO:-"${DOCKER_ORG}/ollama"}
|
|
|
|
echo "Updating ${FINAL_IMAGE_REPO}:latest -> ${FINAL_IMAGE_REPO}:${VERSION}"
|
|
docker buildx imagetools create -t ${FINAL_IMAGE_REPO}:latest ${FINAL_IMAGE_REPO}:${VERSION}
|
|
echo "Updating ${FINAL_IMAGE_REPO}:rocm -> ${FINAL_IMAGE_REPO}:${VERSION}-rocm"
|
|
docker buildx imagetools create -t ${FINAL_IMAGE_REPO}:rocm ${FINAL_IMAGE_REPO}:${VERSION}-rocm
|