diff --git a/scripts/ci-helpers/build_and_publish_instance.sh b/scripts/ci-helpers/build_and_publish_instance.sh index 6528c8676a..118d2f5a99 100755 --- a/scripts/ci-helpers/build_and_publish_instance.sh +++ b/scripts/ci-helpers/build_and_publish_instance.sh @@ -102,15 +102,20 @@ docker login -u "$BLOG_REGISTRY_USER" --password-stdin "registry.hive.blog" <<< echo "Building an instance image in the source directory $SRC_DIR" "$SRC_DIR/scripts/ci-helpers/build_instance.sh" "$CI_COMMIT_TAG" "$SRC_DIR" "$CI_REGISTRY_IMAGE" -echo "Tagging the image built in the previous step as hiveio/${CI_PROJECT_NAME}/minimal-instance:$CI_COMMIT_TAG" -docker tag "$CI_REGISTRY_IMAGE/minimal-instance:$CI_COMMIT_TAG" "hiveio/${CI_PROJECT_NAME}/minimal-instance:$CI_COMMIT_TAG" +HIVEIO_IMG="hiveio/${CI_PROJECT_NAME}:$CI_COMMIT_TAG" -echo "Tagging the image built in the previous step as registry.hive.blog/${CI_PROJECT_NAME}/minimal-instance:$CI_COMMIT_TAG" -docker tag "$CI_REGISTRY_IMAGE/minimal-instance:$CI_COMMIT_TAG" "registry.hive.blog/${CI_PROJECT_NAME}/minimal-instance:$CI_COMMIT_TAG" +echo "Tagging the image built in the previous step as ${HIVEIO_IMG}" +docker tag "$CI_REGISTRY_IMAGE/minimal-instance:$CI_COMMIT_TAG" "${HIVEIO_IMG}" + +HIVEBLOG_IMG="registry.hive.blog/hive/${CI_PROJECT_NAME}:$CI_COMMIT_TAG" + +echo "Tagging the image built in the previous step as ${HIVEBLOG_IMG}" +docker tag "$CI_REGISTRY_IMAGE/minimal-instance:$CI_COMMIT_TAG" "${HIVEBLOG_IMG}" docker images echo "Pushing instance images" docker push "$CI_REGISTRY_IMAGE/instance:$CI_COMMIT_TAG" -docker push "hiveio/$CI_PROJECT_NAME:$CI_COMMIT_TAG" -docker push "registry.hive.blog/$CI_PROJECT_NAME:$CI_COMMIT_TAG" +docker push "$CI_REGISTRY_IMAGE/minimal-instance:$CI_COMMIT_TAG" +docker push "${HIVEIO_IMG}" +docker push "${HIVEBLOG_IMG}"