2020-03-13 19:35:03 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# README:
|
|
|
|
# This script deploys ClickHouse website to your personal test subdomain.
|
|
|
|
#
|
|
|
|
# Before first use of this script:
|
2020-07-16 12:05:03 +00:00
|
|
|
# 1) Set up building documentation according to https://github.com/ClickHouse/ClickHouse/tree/master/docs/tools#use-buildpy-use-build-py
|
2020-07-16 12:04:08 +00:00
|
|
|
# 2) Create https://github.com/GIT_USER/clickhouse.github.io repo (replace GIT_USER with your GitHub login)
|
2020-07-16 15:41:05 +00:00
|
|
|
# 3) Enable GitHub Pages in settings of this repo
|
2021-09-22 00:22:57 +00:00
|
|
|
# 4) Add file named CNAME in root of this repo with "GIT_USER-test.clickhouse.com" content (without quotes)
|
|
|
|
# 5) Send email on address from https://clickhouse.com/#contacts asking to create GIT_USER-test.clickhouse.com domain
|
2020-03-13 19:35:03 +00:00
|
|
|
#
|
|
|
|
set -ex
|
|
|
|
|
2022-05-24 09:11:29 +00:00
|
|
|
BASE_DIR=$(dirname "$(readlink -f "$0")")
|
2020-03-13 19:35:03 +00:00
|
|
|
GIT_USER=${GIT_USER:-$USER}
|
|
|
|
|
2022-05-24 09:11:29 +00:00
|
|
|
GIT_PROD_URI=git@github.com:${GIT_USER}/clickhouse.github.io.git \
|
2021-09-22 00:22:57 +00:00
|
|
|
BASE_DOMAIN=${GIT_USER}-test.clickhouse.com \
|
2022-05-24 09:11:29 +00:00
|
|
|
EXTRA_BUILD_ARGS="${*}" \
|
2020-03-13 19:35:03 +00:00
|
|
|
CLOUDFLARE_TOKEN="" \
|
2022-05-24 09:11:29 +00:00
|
|
|
"${BASE_DIR}/release.sh"
|