diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7b0f229cad78d4f0258f496f8c00ec90442df5c..552772eb3977600522a58dbf26f6c8b67e1b8285 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -396,7 +396,12 @@ build_and_publish_image: before_script: - !reference [.publish_docker_image_template, before_script] script: - - scripts/ci-helpers/build_and_publish_instance.sh + - | + scripts/ci-helpers/build_and_publish_instance.sh + if [[ -n "$CI_COMMIT_TAG" ]]; then + docker tag "$CI_REGISTRY_IMAGE/postgrest-rewriter:$CI_COMMIT_TAG" "registry-upload.hive.blog/balance_tracker/postgrest-rewriter:$CI_COMMIT_TAG" + docker push "registry-upload.hive.blog/balance_tracker/postgrest-rewriter:$CI_COMMIT_TAG" + fi tags: - public-runner-docker - hived-for-tests