Skip to content

Commit

Permalink
update registry
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeimonakhov committed Oct 17, 2023
1 parent a7346f5 commit 1a387f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/functions/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
6 changes: 5 additions & 1 deletion deploy/functions/update_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 1a387f4

Please sign in to comment.