-
Notifications
You must be signed in to change notification settings - Fork 120
/
release.sh
22 lines (22 loc) · 672 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -xeuo pipefail
if [[ $# -lt 1 ]]; then
echo "release.sh [major|minor|patch]"
exit 1
fi
source .release_env
git config core.eol lf
git config core.autocrlf input
git config user.name "$GITHUB_LOGIN"
git config user.email "$GITHUB_EMAIL"
bump2version --verbose $1
docker compose stop
docker compose run --rm frontend_builder
docker compose run --rm backend_builder
sudo dos2unix ./dist/*
sudo chmod +rx ./dist
sudo chmod +rx -R ./dist/altinity-clickhouse-plugin*
docker compose run --rm plugin_signer
git add .
git diff-index --quiet HEAD || git commit -s -m "prepare to new release, $(grep current_version .bumpversion.cfg)"
git push --tags