Skip to content

Commit

Permalink
fix push readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeimonakhov committed Nov 14, 2023
1 parent b1fd006 commit 184ded2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/functions/update_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ update_db() {
if [[ "${image_tag}" =~ cuda11.8 ]]; then
local repo="registry.puzl.cloud/library/${image_name}"
local image="library/${image_name}"
local readme_repo="${image_repo}/${image_name}"
else
local repo="${image_repo}/${image_name}"
fi
Expand Down Expand Up @@ -148,6 +149,9 @@ update_db() {
if [[ "${repo}" =~ registry.puzl.cloud ]]; then
if harbor_tag_exists "${image}" "${tag}"; then
HASURA_QUERY=$(update_hasura_and_push_readme "${repo}" "${image_full_path}" "${HASURA_QUERY}" "${IMAGE_OBJECT}")
if [[ "${branch}" == "master" ]]; then
push_readme "${readme_repo}" "${image_full_path}"
fi
else
echo "Build and push ${repo}:${tag}"
exit 1
Expand All @@ -169,6 +173,9 @@ update_db() {
if [[ "${repo}" =~ registry.puzl.cloud ]]; then
if harbor_tag_exists "${image}" "${image_tag}"; then
HASURA_QUERY=$(update_hasura_and_push_readme "${repo}" "${image_full_path}" "${HASURA_QUERY}" "${IMAGE_OBJECT}")
if [[ "${branch}" == "master" ]]; then
push_readme "${readme_repo}" "${image_full_path}"
fi
else
echo "Build and push ${repo}:${image_tag}"
exit 1
Expand Down

0 comments on commit 184ded2

Please sign in to comment.