diff --git a/deploy/functions/publish.sh b/deploy/functions/publish.sh index 587c65e..3a05f26 100644 --- a/deploy/functions/publish.sh +++ b/deploy/functions/publish.sh @@ -41,8 +41,8 @@ run_publish_image() { for interpreter in $(jq -r '.interpreters[]' ${image_full_path}/metadata.json); do echo "interpreter: ${interpreter}" if docker_tag_exists "${image_repo}/${image_name}" "${image_tag}-${interpreter}"; then - echo "Tag ${image_tag}-${interpreter} in image ${image_repo}/${image_name} already exist. Aborted!" - exit 1 + echo "Tag ${image_tag}-${interpreter} in image ${image_repo}/${image_name} already exist. Skip!" + continue fi interpreter_version=$(echo "${interpreter}" | sed 's/[^0-9.]*\([0-9.]*\).*/\1/') image="${image_repo}/${image_name}:${image_tag}-${interpreter}" diff --git a/deploy/functions/update_db.sh b/deploy/functions/update_db.sh index a7765b3..6807afe 100644 --- a/deploy/functions/update_db.sh +++ b/deploy/functions/update_db.sh @@ -79,12 +79,16 @@ update_db() { else local image_name="$(jq -r '.name' ${image_full_path}/metadata.json)" fi - local repo="${image_repo}/${image_name}" if [[ "$(jq -r '.version' ${image_full_path}/metadata.json)" == "null" ]]; then local image_tag="$(jq -r '.image.tagPrefix' ${image_full_path}/metadata.json)" else local image_tag="$(jq -r '.image.tagPrefix' ${image_full_path}/metadata.json)-g$(cat ${repo_path}/globals/version)-$(jq -r '.version' ${image_full_path}/metadata.json)" fi + if [[ "${image_tag}" =~ cuda11.8 ]]; then + local repo="registry.puzl.cloud/library/${image_name}" + else + local repo="${image_repo}/${image_name}" + fi local icon_url="$(jq -r '.iconUrl' ${image_full_path}/metadata.json)" local description="$(jq -r '.description' ${image_full_path}/metadata.json)" local enable_img="$(jq -r '.enable' ${image_full_path}/metadata.json)"