2024-03-28 22:34:19 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
# For developers, you can override the DOCKER_ORG to generate multiarch manifests
|
2024-09-16 23:18:41 +00:00
|
|
|
# DOCKER_ORG=jdoe VERSION=0.1.30 ./scripts/tag_latest.sh
|
2024-03-28 22:34:19 +00:00
|
|
|
DOCKER_ORG=${DOCKER_ORG:-"ollama"}
|
|
|
|
FINAL_IMAGE_REPO=${FINAL_IMAGE_REPO:-"${DOCKER_ORG}/ollama"}
|
|
|
|
|
2024-09-16 23:18:41 +00:00
|
|
|
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
|