Skip to content

Commit

Permalink
Image publishing script should push minimal-instance targets into h…
Browse files Browse the repository at this point in the history
…iveio like also registry.hive.blog. Also fixed registry.hive.blog image pathname
  • Loading branch information
vogel76 committed Mar 15, 2024
1 parent f085340 commit 1602e2e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions scripts/ci-helpers/build_and_publish_instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit 1602e2e

Please sign in to comment.