Merge pull request #9621 from emqx/release-50

merge release-50 back to master
This commit is contained in:
Zaiming (Stone) Shi 2022-12-28 10:04:13 +01:00 committed by GitHub
commit 29a0899ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 32 deletions

View File

@ -198,21 +198,8 @@ jobs:
matrix: matrix:
profile: profile:
- ${{ needs.prepare.outputs.BUILD_PROFILE }} - ${{ needs.prepare.outputs.BUILD_PROFILE }}
builder:
- 5.0-26
otp: otp:
- 24.3.4.2-1 - 24.3.4.2-1
elixir:
- 1.13.4
# used to split elixir packages into a separate job, since the
# entire job may take a lot of time, especially on arm64
# emulation.
# we only want to build ubuntu and centos with elixir for the
# time being, so it's easier to just include those with
# `with_elixir` set.
build_elixir:
# - with_elixir
- no_elixir
arch: arch:
- amd64 - amd64
- arm64 - arm64
@ -227,6 +214,10 @@ jobs:
build_machine: build_machine:
- aws-arm64 - aws-arm64
- ubuntu-20.04 - ubuntu-20.04
builder:
- 5.0-26
elixir:
- 1.13.4
exclude: exclude:
- arch: arm64 - arch: arm64
build_machine: ubuntu-20.04 build_machine: ubuntu-20.04
@ -234,19 +225,21 @@ jobs:
build_machine: aws-arm64 build_machine: aws-arm64
include: include:
- profile: emqx - profile: emqx
otp: 24.3.4.2-1 otp: 25.1.2-2
elixir: 1.13.4
build_elixir: with_elixir
arch: amd64 arch: amd64
os: ubuntu20.04 os: ubuntu20.04
build_machine: ubuntu-20.04 build_machine: ubuntu-20.04
- profile: emqx builder: 5.0-26
otp: 24.3.4.2-1
elixir: 1.13.4 elixir: 1.13.4
build_elixir: with_elixir release_with: elixir
- profile: emqx
otp: 24.3.4.2-1 # TODO: 25.1.2-2
arch: amd64 arch: amd64
os: amzn2 os: amzn2
build_machine: ubuntu-20.04 build_machine: ubuntu-20.04
builder: 5.0-26
elixir: 1.13.4
release_with: elixir
defaults: defaults:
run: run:
@ -265,8 +258,8 @@ jobs:
working-directory: source working-directory: source
env: env:
BUILDER: ${{ matrix.builder }} BUILDER: ${{ matrix.builder }}
OTP: ${{ matrix.otp }}
ELIXIR: ${{ matrix.elixir }} ELIXIR: ${{ matrix.elixir }}
OTP: ${{ matrix.otp }}
PROFILE: ${{ matrix.profile }} PROFILE: ${{ matrix.profile }}
ARCH: ${{ matrix.arch }} ARCH: ${{ matrix.arch }}
SYSTEM: ${{ matrix.os }} SYSTEM: ${{ matrix.os }}
@ -279,20 +272,20 @@ jobs:
cd /emqx cd /emqx
fi fi
echo "pwd is $PWD" echo "pwd is $PWD"
PkgTypes="tgz pkg" PKGTYPES="tgz pkg"
IsElixir="no" IS_ELIXIR="no"
if [ ${{ matrix.build_elixir }} = "with_elixir" ]; then if [ ${{ matrix.release_with }} == 'elixir' ]; then
PkgTypes="tgz" PKGTYPES="tgz"
# set Elixir build flag # set Elixir build flag
IsElixir="yes" IS_ELIXIR="yes"
fi fi
for PKGTYPE in ${PkgTypes}; for PKGTYPE in ${PKGTYPES};
do do
./scripts/buildx.sh \ ./scripts/buildx.sh \
--profile "${PROFILE}" \ --profile "${PROFILE}" \
--pkgtype "${PKGTYPE}" \ --pkgtype "${PKGTYPE}" \
--arch "${ARCH}" \ --arch "${ARCH}" \
--elixir "${IsElixir}" \ --elixir "${IS_ELIXIR}" \
--builder "ghcr.io/emqx/emqx-builder/${BUILDER}:${ELIXIR}-${OTP}-${SYSTEM}" --builder "ghcr.io/emqx/emqx-builder/${BUILDER}:${ELIXIR}-${OTP}-${SYSTEM}"
done done
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3

View File

@ -6,7 +6,7 @@ export EMQX_DEFAULT_BUILDER = ghcr.io/emqx/emqx-builder/5.0-26:1.13.4-24.3.4.2-1
export EMQX_DEFAULT_RUNNER = debian:11-slim export EMQX_DEFAULT_RUNNER = debian:11-slim
export OTP_VSN ?= $(shell $(CURDIR)/scripts/get-otp-vsn.sh) export OTP_VSN ?= $(shell $(CURDIR)/scripts/get-otp-vsn.sh)
export ELIXIR_VSN ?= $(shell $(CURDIR)/scripts/get-elixir-vsn.sh) export ELIXIR_VSN ?= $(shell $(CURDIR)/scripts/get-elixir-vsn.sh)
export EMQX_DASHBOARD_VERSION ?= v1.1.4-beta.1 export EMQX_DASHBOARD_VERSION ?= v1.1.4
export EMQX_EE_DASHBOARD_VERSION ?= e1.0.1-beta.9 export EMQX_EE_DASHBOARD_VERSION ?= e1.0.1-beta.9
export EMQX_REL_FORM ?= tgz export EMQX_REL_FORM ?= tgz
export QUICER_DOWNLOAD_FROM_RELEASE = 1 export QUICER_DOWNLOAD_FROM_RELEASE = 1

View File

@ -32,7 +32,7 @@
%% `apps/emqx/src/bpapi/README.md' %% `apps/emqx/src/bpapi/README.md'
%% Community edition %% Community edition
-define(EMQX_RELEASE_CE, "5.0.12"). -define(EMQX_RELEASE_CE, "5.0.13").
%% Enterprise edition %% Enterprise edition
-define(EMQX_RELEASE_EE, "5.0.0-beta.6"). -define(EMQX_RELEASE_EE, "5.0.0-beta.6").

View File

@ -14,8 +14,8 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
version: 5.0.12 version: 5.0.13
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. # incremented each time you make changes to the application.
appVersion: 5.0.12 appVersion: 5.0.13

View File

@ -32,7 +32,7 @@ function cleanup {
} }
security create-keychain -p "${KEYCHAIN_PASSWORD}" "${KEYCHAIN}" security create-keychain -p "${KEYCHAIN_PASSWORD}" "${KEYCHAIN}"
security set-keychain-settings -lut 21600 "${KEYCHAIN}" security set-keychain-settings "${KEYCHAIN}"
security unlock-keychain -p "${KEYCHAIN_PASSWORD}" "${KEYCHAIN}" security unlock-keychain -p "${KEYCHAIN_PASSWORD}" "${KEYCHAIN}"
security import "${PKSC12_FILE}" -P "${APPLE_DEVELOPER_ID_BUNDLE_PASSWORD}" -t cert -f pkcs12 -k "${KEYCHAIN}" -T /usr/bin/codesign security import "${PKSC12_FILE}" -P "${APPLE_DEVELOPER_ID_BUNDLE_PASSWORD}" -t cert -f pkcs12 -k "${KEYCHAIN}" -T /usr/bin/codesign
security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "${KEYCHAIN_PASSWORD}" "${KEYCHAIN}" security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "${KEYCHAIN_PASSWORD}" "${KEYCHAIN}"