Merge pull request #7403 from zmstone/merge-v43-to-v44
Merge v43 to v44
This commit is contained in:
commit
7e2be899fb
|
@ -16,12 +16,14 @@ jobs:
|
||||||
container: ghcr.io/emqx/emqx-builder/4.4-7:${{ matrix.erl_otp }}-${{ matrix.os }}
|
container: ghcr.io/emqx/emqx-builder/4.4-7:${{ matrix.erl_otp }}-${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- name: Check apps version
|
with:
|
||||||
run: ./scripts/apps-version-check.sh
|
fetch-depth: 0 # need full history
|
||||||
- name: Check relup (ce)
|
- name: Check relup (ce)
|
||||||
if: endsWith(github.repository, 'emqx')
|
if: endsWith(github.repository, 'emqx')
|
||||||
run: ./scripts/update-appup.sh emqx --check
|
run: ./scripts/update-appup.sh emqx --check
|
||||||
- name: Check relup (ee)
|
- name: Check relup (ee)
|
||||||
if: endsWith(github.repository, 'enterprise')
|
if: endsWith(github.repository, 'enterprise')
|
||||||
run: ./scripts/update-appup.sh emqx-ee --check
|
run: ./scripts/update-appup.sh emqx-ee --check
|
||||||
|
- name: Check apps version
|
||||||
|
run: ./scripts/apps-version-check.sh
|
||||||
|
|
|
@ -8,8 +8,8 @@ cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
|
||||||
PKG_VSN="${PKG_VSN:-$(./pkg-vsn.sh)}"
|
PKG_VSN="${PKG_VSN:-$(./pkg-vsn.sh)}"
|
||||||
case "${PKG_VSN}" in
|
case "${PKG_VSN}" in
|
||||||
4.3*)
|
4.3*)
|
||||||
EMQX_CE_DASHBOARD_VERSION='v4.3.5'
|
EMQX_CE_DASHBOARD_VERSION='v4.3.6'
|
||||||
EMQX_EE_DASHBOARD_VERSION='v4.3.15'
|
EMQX_EE_DASHBOARD_VERSION='v4.3.16'
|
||||||
;;
|
;;
|
||||||
4.4*)
|
4.4*)
|
||||||
# keep the above 4.3 untouched, otherwise conflicts!
|
# keep the above 4.3 untouched, otherwise conflicts!
|
||||||
|
|
|
@ -16,15 +16,12 @@ cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/.."
|
||||||
PROFILE="${1:-}"
|
PROFILE="${1:-}"
|
||||||
case "$PROFILE" in
|
case "$PROFILE" in
|
||||||
emqx-ee)
|
emqx-ee)
|
||||||
DIR='enterprise'
|
|
||||||
TAG_PREFIX='e'
|
TAG_PREFIX='e'
|
||||||
;;
|
;;
|
||||||
emqx)
|
emqx)
|
||||||
DIR='broker'
|
|
||||||
TAG_PREFIX='v'
|
TAG_PREFIX='v'
|
||||||
;;
|
;;
|
||||||
emqx-edge)
|
emqx-edge)
|
||||||
DIR='edge'
|
|
||||||
TAG_PREFIX='v'
|
TAG_PREFIX='v'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -34,8 +31,12 @@ case "$PROFILE" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
PREV_TAG="$(git describe --tag --match "${TAG_PREFIX}*" | grep -oE "${TAG_PREFIX}4\.[0-9]+\.[0-9]+")"
|
## possible tags:
|
||||||
PREV_VERSION="${PREV_TAG#[e|v]}"
|
## v4.3.11
|
||||||
|
## e4.3.11
|
||||||
|
## rel-v4.4.3
|
||||||
|
## rel-e4.4.3
|
||||||
|
PREV_TAG="$(git describe --tag --abbrev=0 --match "[${TAG_PREFIX}|rel-]*" --exclude '*rc*' --exclude '*alpha*' --exclude '*beta*')"
|
||||||
|
|
||||||
shift 1
|
shift 1
|
||||||
# bash 3.2 treat empty array as unbound, so we can't use 'ESCRIPT_ARGS=()' here,
|
# bash 3.2 treat empty array as unbound, so we can't use 'ESCRIPT_ARGS=()' here,
|
||||||
|
@ -74,30 +75,30 @@ if [ "${SKIP_BUILD:-}" != 'yes' ]; then
|
||||||
make "${PROFILE}"
|
make "${PROFILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PACKAGE_NAME="${PROFILE}-$(env PKG_VSN="$PREV_VERSION" ./scripts/pkg-full-vsn.sh).zip"
|
PREV_DIR_BASE="/tmp/emqx-appup-build"
|
||||||
DOWNLOAD_URL="https://www.emqx.com/downloads/${DIR}/v${PREV_VERSION}/${PACKAGE_NAME}"
|
|
||||||
|
|
||||||
PREV_DIR_BASE="/tmp/emqx-appup-base"
|
|
||||||
mkdir -p "${PREV_DIR_BASE}"
|
mkdir -p "${PREV_DIR_BASE}"
|
||||||
pushd "${PREV_DIR_BASE}"
|
|
||||||
if [ ! -f "${PACKAGE_NAME}" ]; then
|
|
||||||
echo "Download: ${PACKAGE_NAME}"
|
|
||||||
curl -f -L -o "${PACKAGE_NAME}" "${DOWNLOAD_URL}"
|
|
||||||
fi
|
|
||||||
if [ ! -d "${PREV_TAG}" ]; then
|
if [ ! -d "${PREV_TAG}" ]; then
|
||||||
unzip -q -n -d "${PREV_TAG}" "${PACKAGE_NAME}"
|
cp -R . "${PREV_DIR_BASE}/${PREV_TAG}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pushd "${PREV_DIR_BASE}/${PREV_TAG}"
|
||||||
|
git reset --hard
|
||||||
|
git checkout "${PREV_TAG}"
|
||||||
|
make clean-all
|
||||||
|
make "$PROFILE"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
PREV_REL_DIR="${PREV_DIR_BASE}/${PREV_TAG}/_build/${PROFILE}/lib"
|
||||||
|
|
||||||
# bash 3.2 does not allow empty array, so we had to add an empty string in the ESCRIPT_ARGS array,
|
# bash 3.2 does not allow empty array, so we had to add an empty string in the ESCRIPT_ARGS array,
|
||||||
# this in turn makes quoting "${ESCRIPT_ARGS[@]}" problematic, hence disable SC2068 check here
|
# this in turn makes quoting "${ESCRIPT_ARGS[@]}" problematic, hence disable SC2068 check here
|
||||||
# shellcheck disable=SC2068
|
# shellcheck disable=SC2068
|
||||||
./scripts/update_appup.escript \
|
./scripts/update_appup.escript \
|
||||||
--src-dirs "${SRC_DIRS}/**" \
|
--src-dirs "${SRC_DIRS}/**" \
|
||||||
--release-dir "_build/${PROFILE}/lib" \
|
--release-dir "_build/${PROFILE}/lib" \
|
||||||
--prev-release-dir "${PREV_DIR_BASE}/${PREV_TAG}/emqx/lib" \
|
--prev-release-dir "${PREV_REL_DIR}" \
|
||||||
--skip-build \
|
--skip-build \
|
||||||
${ESCRIPT_ARGS[@]} "$PREV_VERSION"
|
${ESCRIPT_ARGS[@]} "$PREV_TAG"
|
||||||
|
|
||||||
if [ "${IS_CHECK:-}" = 'yes' ]; then
|
if [ "${IS_CHECK:-}" = 'yes' ]; then
|
||||||
diffs="$(git diff --name-only | grep -E '\.appup\.src' || true)"
|
diffs="$(git diff --name-only | grep -E '\.appup\.src' || true)"
|
||||||
|
|
Loading…
Reference in New Issue