Merge remote-tracking branch 'upstream/release-53' into 1018-sync-r53
This commit is contained in:
commit
82bac3e136
|
@ -8,7 +8,7 @@ services:
|
||||||
dockerfile: ./pgsql/Dockerfile
|
dockerfile: ./pgsql/Dockerfile
|
||||||
args:
|
args:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
BUILD_FROM: postgres:${PGSQL_TAG}
|
BUILD_FROM: public.ecr.aws/docker/library/postgres:${PGSQL_TAG}
|
||||||
image: emqx_pgsql:${PGSQL_TAG}
|
image: emqx_pgsql:${PGSQL_TAG}
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -16,7 +16,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sanity-checks:
|
sanity-checks:
|
||||||
runs-on: ${{ fromJSON(github.repository_owner == 'emqx' && '["self-hosted","ephemeral"]' || '["ubuntu-22.04"]') }}
|
runs-on: ${{ fromJSON(github.repository_owner == 'emqx' && '["self-hosted","ephemeral","linux","x64"]' || '["ubuntu-22.04"]') }}
|
||||||
container: "ghcr.io/emqx/emqx-builder/5.1-4:1.14.5-25.3.2-2-ubuntu22.04"
|
container: "ghcr.io/emqx/emqx-builder/5.1-4:1.14.5-25.3.2-2-ubuntu22.04"
|
||||||
outputs:
|
outputs:
|
||||||
ct-matrix: ${{ steps.matrix.outputs.ct-matrix }}
|
ct-matrix: ${{ steps.matrix.outputs.ct-matrix }}
|
||||||
|
@ -24,7 +24,7 @@ jobs:
|
||||||
ct-docker: ${{ steps.matrix.outputs.ct-docker }}
|
ct-docker: ${{ steps.matrix.outputs.ct-docker }}
|
||||||
version-emqx: ${{ steps.matrix.outputs.version-emqx }}
|
version-emqx: ${{ steps.matrix.outputs.version-emqx }}
|
||||||
version-emqx-enterprise: ${{ steps.matrix.outputs.version-emqx-enterprise }}
|
version-emqx-enterprise: ${{ steps.matrix.outputs.version-emqx-enterprise }}
|
||||||
runner_labels: ${{ github.repository_owner == 'emqx' && '["self-hosted", "ephemeral"]' || '["ubuntu-22.04"]' }}
|
runner_labels: ${{ github.repository_owner == 'emqx' && '["self-hosted","ephemeral","linux","x64"]' || '["ubuntu-22.04"]' }}
|
||||||
builder: "ghcr.io/emqx/emqx-builder/5.1-4:1.14.5-25.3.2-2-ubuntu22.04"
|
builder: "ghcr.io/emqx/emqx-builder/5.1-4:1.14.5-25.3.2-2-ubuntu22.04"
|
||||||
builder_vsn: "5.1-4"
|
builder_vsn: "5.1-4"
|
||||||
otp_vsn: "25.3.2-2"
|
otp_vsn: "25.3.2-2"
|
||||||
|
@ -57,8 +57,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
ACTIONLINT_VSN: 1.6.25
|
ACTIONLINT_VSN: 1.6.25
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VSN}/actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz
|
wget -q https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VSN}/actionlint_${ACTIONLINT_VSN}_linux_$(dpkg --print-architecture).tar.gz -O actionlint.tar.gz
|
||||||
tar zxf actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz actionlint
|
tar zxf actionlint.tar.gz actionlint
|
||||||
# TODO: enable shellcheck when all the current issues are fixed
|
# TODO: enable shellcheck when all the current issues are fixed
|
||||||
./actionlint -color \
|
./actionlint -color \
|
||||||
-shellcheck= \
|
-shellcheck= \
|
||||||
|
|
|
@ -19,7 +19,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
prepare:
|
||||||
runs-on: ${{ fromJSON(github.repository_owner == 'emqx' && '["self-hosted", "ephemeral"]' || '["ubuntu-22.04"]') }}
|
runs-on: ${{ fromJSON(github.repository_owner == 'emqx' && '["self-hosted","ephemeral","linux","x64"]' || '["ubuntu-22.04"]') }}
|
||||||
container: 'ghcr.io/emqx/emqx-builder/5.1-4:1.14.5-25.3.2-2-ubuntu22.04'
|
container: 'ghcr.io/emqx/emqx-builder/5.1-4:1.14.5-25.3.2-2-ubuntu22.04'
|
||||||
outputs:
|
outputs:
|
||||||
profile: ${{ steps.parse-git-ref.outputs.profile }}
|
profile: ${{ steps.parse-git-ref.outputs.profile }}
|
||||||
|
@ -29,7 +29,7 @@ jobs:
|
||||||
ct-matrix: ${{ steps.matrix.outputs.ct-matrix }}
|
ct-matrix: ${{ steps.matrix.outputs.ct-matrix }}
|
||||||
ct-host: ${{ steps.matrix.outputs.ct-host }}
|
ct-host: ${{ steps.matrix.outputs.ct-host }}
|
||||||
ct-docker: ${{ steps.matrix.outputs.ct-docker }}
|
ct-docker: ${{ steps.matrix.outputs.ct-docker }}
|
||||||
runner_labels: ${{ github.repository_owner == 'emqx' && '["self-hosted", "ephemeral"]' || '["ubuntu-22.04"]' }}
|
runner_labels: ${{ github.repository_owner == 'emqx' && '["self-hosted","ephemeral","linux","x64"]' || '["ubuntu-22.04"]' }}
|
||||||
builder: 'ghcr.io/emqx/emqx-builder/5.1-4:1.14.5-25.3.2-2-ubuntu22.04'
|
builder: 'ghcr.io/emqx/emqx-builder/5.1-4:1.14.5-25.3.2-2-ubuntu22.04'
|
||||||
builder_vsn: '5.1-4'
|
builder_vsn: '5.1-4'
|
||||||
otp_vsn: '25.3.2-2'
|
otp_vsn: '25.3.2-2'
|
||||||
|
|
|
@ -73,7 +73,7 @@ on:
|
||||||
runner_labels:
|
runner_labels:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: '["self-hosted","ephemeral", "linux"]'
|
default: '["self-hosted","ephemeral","linux","x64"]'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
|
@ -151,7 +151,7 @@ jobs:
|
||||||
path: _packages/${{ matrix.profile }}/
|
path: _packages/${{ matrix.profile }}/
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
runs-on: ['self-hosted', 'linux', "${{ matrix.arch }}"]
|
runs-on: ['self-hosted', 'ephemeral', 'linux', "${{ matrix.arch }}"]
|
||||||
# always run in builder container because the host might have the wrong OTP version etc.
|
# always run in builder container because the host might have the wrong OTP version etc.
|
||||||
# otherwise buildx.sh does not run docker if arch and os matches the target arch and os.
|
# otherwise buildx.sh does not run docker if arch and os matches the target arch and os.
|
||||||
container:
|
container:
|
||||||
|
|
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
linux:
|
||||||
if: github.repository_owner == 'emqx'
|
if: github.repository_owner == 'emqx'
|
||||||
runs-on: ['self-hosted', 'linux', "${{ matrix.arch }}", 'ephemeral']
|
runs-on: ['self-hosted', 'ephemeral', 'linux', "${{ matrix.arch }}"]
|
||||||
container:
|
container:
|
||||||
image: "ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}"
|
image: "ghcr.io/emqx/emqx-builder/${{ matrix.builder }}:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}"
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ on:
|
||||||
runner_labels:
|
runner_labels:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: '["self-hosted","ephemeral"]'
|
default: '["self-hosted","ephemeral", "linux", "x64"]'
|
||||||
builder:
|
builder:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
|
|
|
@ -118,7 +118,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
PGSQL_TAG: ${{ matrix.pgsql_tag }}
|
PGSQL_TAG: ${{ matrix.pgsql_tag }}
|
||||||
run: |
|
run: |
|
||||||
docker pull postgres:${PGSQL_TAG}
|
|
||||||
docker compose \
|
docker compose \
|
||||||
-f .ci/docker-compose-file/docker-compose-emqx-cluster.yaml \
|
-f .ci/docker-compose-file/docker-compose-emqx-cluster.yaml \
|
||||||
-f .ci/docker-compose-file/docker-compose-pgsql-tls.yaml \
|
-f .ci/docker-compose-file/docker-compose-pgsql-tls.yaml \
|
||||||
|
@ -245,7 +244,7 @@ jobs:
|
||||||
cd scripts/jwks-server
|
cd scripts/jwks-server
|
||||||
mvn package
|
mvn package
|
||||||
cd target
|
cd target
|
||||||
docker run --name jwks_server --network emqx_bridge --ip 172.100.239.88 -d -v $(pwd)/jwkserver-0.0.1.jar:/jwks_server/jwkserver-0.0.1.jar --workdir /jwks_server openjdk:8-jdk bash \
|
docker run --name jwks_server --network emqx_bridge --ip 172.100.239.88 -d -v $(pwd)/jwkserver-0.0.1.jar:/jwks_server/jwkserver-0.0.1.jar --workdir /jwks_server public.ecr.aws/amazoncorretto/amazoncorretto:8 bash \
|
||||||
-c "java -jar jwkserver-0.0.1.jar"
|
-c "java -jar jwkserver-0.0.1.jar"
|
||||||
- name: run jmeter
|
- name: run jmeter
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -14,7 +14,7 @@ case ${OTP_VSN} in
|
||||||
VERSION="3.18.0-emqx-1"
|
VERSION="3.18.0-emqx-1"
|
||||||
;;
|
;;
|
||||||
25*)
|
25*)
|
||||||
VERSION="3.19.0-emqx-1"
|
VERSION="3.19.0-emqx-8"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unsupporetd Erlang/OTP version $OTP_VSN"
|
echo "Unsupporetd Erlang/OTP version $OTP_VSN"
|
||||||
|
|
|
@ -184,7 +184,7 @@ haproxy_cid=$(docker run -d --name haproxy \
|
||||||
-v "$(pwd)/apps/emqx/etc/certs:/usr/local/etc/haproxy/certs" \
|
-v "$(pwd)/apps/emqx/etc/certs:/usr/local/etc/haproxy/certs" \
|
||||||
-w /usr/local/etc/haproxy \
|
-w /usr/local/etc/haproxy \
|
||||||
"${HAPROXY_PORTS[@]}" \
|
"${HAPROXY_PORTS[@]}" \
|
||||||
"haproxy:2.4" \
|
"public.ecr.aws/docker/library/haproxy:2.4" \
|
||||||
bash -c 'set -euo pipefail;
|
bash -c 'set -euo pipefail;
|
||||||
cat certs/cert.pem certs/key.pem > /tmp/emqx.pem;
|
cat certs/cert.pem certs/key.pem > /tmp/emqx.pem;
|
||||||
haproxy -f haproxy.cfg')
|
haproxy -f haproxy.cfg')
|
||||||
|
|
Loading…
Reference in New Issue