Merge pull request #9298 from zmstone/1103-ci-fix-build
1103 ci fix build
This commit is contained in:
commit
25f200a122
|
@ -15,7 +15,15 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
||||||
if make emqx-ee --dry-run > /dev/null 2>&1; then
|
if [ -d source ]; then
|
||||||
|
## source code downloaded
|
||||||
|
cd source
|
||||||
|
fi
|
||||||
|
if [ ! -d .git ]; then
|
||||||
|
echo "Not git dir, $(pwd)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ -f 'EMQX_ENTERPRISE' ]; then
|
||||||
echo "::set-output name=profiles::[\"emqx-ee\"]"
|
echo "::set-output name=profiles::[\"emqx-ee\"]"
|
||||||
echo "https://ci%40emqx.io:${{ inputs.ci_git_token }}@github.com" > $HOME/.git-credentials
|
echo "https://ci%40emqx.io:${{ inputs.ci_git_token }}@github.com" > $HOME/.git-credentials
|
||||||
git config --global credential.helper store
|
git config --global credential.helper store
|
||||||
|
|
8
build
8
build
|
@ -67,7 +67,14 @@ make_rel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
relup_db() {
|
relup_db() {
|
||||||
|
case "$PROFILE" in
|
||||||
|
*-ee*)
|
||||||
|
./scripts/relup-base-vsns.escript "$@" ./data/relup-paths-ee.eterm
|
||||||
|
;;
|
||||||
|
*)
|
||||||
./scripts/relup-base-vsns.escript "$@" ./data/relup-paths.eterm
|
./scripts/relup-base-vsns.escript "$@" ./data/relup-paths.eterm
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
## unzip previous version .zip files to _build/$PROFILE/rel/emqx/releases before making relup
|
## unzip previous version .zip files to _build/$PROFILE/rel/emqx/releases before making relup
|
||||||
|
@ -84,7 +91,6 @@ make_relup() {
|
||||||
if [[ "$OTP_BASE" != "$OTP_VSN" ]]; then
|
if [[ "$OTP_BASE" != "$OTP_VSN" ]]; then
|
||||||
OTP_CHANGED='yes'
|
OTP_CHANGED='yes'
|
||||||
fi
|
fi
|
||||||
OTP_BASE=$(relup_db otp-vsn-for "$PKG_VSN")
|
|
||||||
zip_file="_upgrade_base/${PROFILE}-$(env OTP_VSN="$OTP_BASE" PKG_VSN="$BASE_VSN" ./scripts/pkg-full-vsn.sh 'vsn_exact').zip"
|
zip_file="_upgrade_base/${PROFILE}-$(env OTP_VSN="$OTP_BASE" PKG_VSN="$BASE_VSN" ./scripts/pkg-full-vsn.sh 'vsn_exact').zip"
|
||||||
if [ ! -d "$releases_dir/$BASE_VSN" ]; then
|
if [ ! -d "$releases_dir/$BASE_VSN" ]; then
|
||||||
local tmp_dir
|
local tmp_dir
|
||||||
|
|
|
@ -63,7 +63,7 @@ reload_components() ->
|
||||||
?INFO("reloading resource providers ..."),
|
?INFO("reloading resource providers ..."),
|
||||||
emqx_rule_engine:load_providers(),
|
emqx_rule_engine:load_providers(),
|
||||||
?INFO("loading plugins ..."),
|
?INFO("loading plugins ..."),
|
||||||
load_plugins(),
|
_ = load_plugins(),
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
-endif.
|
-endif.
|
||||||
|
|
Loading…
Reference in New Issue