chore(CI): use ghcr
Signed-off-by: zhanghongtong <rory-z@outlook.com>
This commit is contained in:
parent
294c1a5f69
commit
1e8948e091
|
@ -12,12 +12,12 @@ jobs:
|
||||||
prepare:
|
prepare:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
container:
|
otp:
|
||||||
- "emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04"
|
- "23.2.7.2-emqx-2"
|
||||||
- "emqx/build-env:erl24.0.5-emqx-1-ubuntu20.04"
|
- "24.0.5-emqx-1"
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: ${{ matrix.container }}
|
container: "ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-ubuntu20.04"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
profiles: ${{ steps.set_profile.outputs.profiles }}
|
profiles: ${{ steps.set_profile.outputs.profiles }}
|
||||||
|
@ -306,7 +306,7 @@ jobs:
|
||||||
done
|
done
|
||||||
- name: build emqx packages
|
- name: build emqx packages
|
||||||
env:
|
env:
|
||||||
ERL_OTP: erl${{ matrix.otp }}
|
OTP: ${{ matrix.otp }}
|
||||||
PROFILE: ${{ matrix.profile }}
|
PROFILE: ${{ matrix.profile }}
|
||||||
ARCH: ${{ matrix.arch }}
|
ARCH: ${{ matrix.arch }}
|
||||||
SYSTEM: ${{ matrix.os }}
|
SYSTEM: ${{ matrix.os }}
|
||||||
|
@ -316,7 +316,7 @@ jobs:
|
||||||
-v $(pwd):/emqx \
|
-v $(pwd):/emqx \
|
||||||
--workdir /emqx \
|
--workdir /emqx \
|
||||||
--platform linux/$ARCH \
|
--platform linux/$ARCH \
|
||||||
emqx/build-env:$ERL_OTP-$SYSTEM \
|
ghcr.io/emqx/emqx-builder-helper/5.0:$OTP-$SYSTEM \
|
||||||
bash -euc "make $PROFILE-zip || cat rebar3.crashdump; \
|
bash -euc "make $PROFILE-zip || cat rebar3.crashdump; \
|
||||||
make $PROFILE-pkg || cat rebar3.crashdump; \
|
make $PROFILE-pkg || cat rebar3.crashdump; \
|
||||||
EMQX_NAME=$PROFILE && .ci/build_packages/tests.sh"
|
EMQX_NAME=$PROFILE && .ci/build_packages/tests.sh"
|
||||||
|
@ -375,7 +375,7 @@ jobs:
|
||||||
tags: emqx/${{ matrix.profile }}:${{ steps.version.outputs.version }}
|
tags: emqx/${{ matrix.profile }}:${{ steps.version.outputs.version }}
|
||||||
build-args: |
|
build-args: |
|
||||||
PKG_VSN=${{ steps.version.outputs.version }}
|
PKG_VSN=${{ steps.version.outputs.version }}
|
||||||
BUILD_FROM=emqx/build-env:erl${{ matrix.otp }}-alpine
|
BUILD_FROM=ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-alpine3.14
|
||||||
RUN_FROM=alpine:3.14
|
RUN_FROM=alpine:3.14
|
||||||
EMQX_NAME=${{ matrix.profile }}
|
EMQX_NAME=${{ matrix.profile }}
|
||||||
file: source/deploy/docker/Dockerfile
|
file: source/deploy/docker/Dockerfile
|
||||||
|
@ -395,7 +395,7 @@ jobs:
|
||||||
tags: emqx/${{ matrix.profile }}:${{ steps.version.outputs.version }}
|
tags: emqx/${{ matrix.profile }}:${{ steps.version.outputs.version }}
|
||||||
build-args: |
|
build-args: |
|
||||||
PKG_VSN=${{ steps.version.outputs.version }}
|
PKG_VSN=${{ steps.version.outputs.version }}
|
||||||
BUILD_FROM=emqx/build-env:erl${{ matrix.otp }}-alpine
|
BUILD_FROM=ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-alpine3.14
|
||||||
RUN_FROM=alpine:3.14
|
RUN_FROM=alpine:3.14
|
||||||
EMQX_NAME=${{ matrix.profile }}
|
EMQX_NAME=${{ matrix.profile }}
|
||||||
file: source/deploy/docker/Dockerfile
|
file: source/deploy/docker/Dockerfile
|
||||||
|
|
|
@ -14,14 +14,13 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
erl_otp:
|
otp:
|
||||||
- erl24.0.5-emqx-1
|
- 24.0.5-emqx-1
|
||||||
|
|
||||||
os:
|
os:
|
||||||
- ubuntu20.04
|
- ubuntu20.04
|
||||||
- centos7
|
- centos7
|
||||||
|
|
||||||
container: emqx/build-env:${{ matrix.erl_otp }}-${{ matrix.os }}
|
container: "ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-${{ matrix.os }}"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
@ -58,7 +57,7 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
erl_otp:
|
otp:
|
||||||
- 24.0.5-emqx-1
|
- 24.0.5-emqx-1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -83,7 +82,7 @@ jobs:
|
||||||
id: cache
|
id: cache
|
||||||
with:
|
with:
|
||||||
path: ~/.kerl
|
path: ~/.kerl
|
||||||
key: erl${{ matrix.erl_otp }}-macos10.15
|
key: erl${{ matrix.otp }}-macos10.15
|
||||||
- name: build erlang
|
- name: build erlang
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
@ -92,11 +91,11 @@ jobs:
|
||||||
OTP_GITHUB_URL: https://github.com/emqx/otp
|
OTP_GITHUB_URL: https://github.com/emqx/otp
|
||||||
run: |
|
run: |
|
||||||
kerl update releases
|
kerl update releases
|
||||||
kerl build ${{ matrix.erl_otp }}
|
kerl build ${{ matrix.otp }}
|
||||||
kerl install ${{ matrix.erl_otp }} $HOME/.kerl/${{ matrix.erl_otp }}
|
kerl install ${{ matrix.otp }} $HOME/.kerl/${{ matrix.otp }}
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
. $HOME/.kerl/${{ matrix.erl_otp }}/activate
|
. $HOME/.kerl/${{ matrix.otp }}/activate
|
||||||
make ensure-rebar3
|
make ensure-rebar3
|
||||||
sudo cp rebar3 /usr/local/bin/rebar3
|
sudo cp rebar3 /usr/local/bin/rebar3
|
||||||
make ${EMQX_NAME}-zip
|
make ${EMQX_NAME}-zip
|
||||||
|
|
|
@ -4,13 +4,8 @@ on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_deps_integrity:
|
check_deps_integrity:
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
container:
|
|
||||||
- "emqx/build-env:erl24.0.5-emqx-1-ubuntu20.04"
|
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: ${{ matrix.container }}
|
container: "ghcr.io/emqx/emqx-builder-helper/5.0:24.0.5-emqx-1-ubuntu20.04"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
@ -10,7 +10,8 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: "emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04"
|
container: "ghcr.io/emqx/emqx-builder-helper/5.0:23.2.7.2-emqx-2-ubuntu20.04"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: zip emqx-broker
|
- name: zip emqx-broker
|
||||||
|
@ -27,6 +28,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: emqx-broker
|
name: emqx-broker
|
||||||
path: _packages/**/*.zip
|
path: _packages/**/*.zip
|
||||||
|
|
||||||
api-test:
|
api-test:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -94,6 +96,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: jmeter_logs
|
name: jmeter_logs
|
||||||
path: ./jmeter_logs
|
path: ./jmeter_logs
|
||||||
|
|
||||||
delete-package:
|
delete-package:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: api-test
|
needs: api-test
|
||||||
|
|
|
@ -8,31 +8,30 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_all:
|
check_all:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
container:
|
otp:
|
||||||
- "emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04"
|
- "23.2.7.2-emqx-2"
|
||||||
- "emqx/build-env:erl24.0.5-emqx-1-ubuntu20.04"
|
- "24.0.5-emqx-1"
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: ${{ matrix.container }}
|
container: "ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-ubuntu20.04"
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: run
|
|
||||||
run: |
|
|
||||||
make ensure-rebar3
|
|
||||||
cp rebar3 apps/emqx/
|
|
||||||
cd apps/emqx
|
|
||||||
./rebar3 xref
|
|
||||||
./rebar3 dialyzer
|
|
||||||
./rebar3 eunit -v
|
|
||||||
./rebar3 ct -v
|
|
||||||
./rebar3 proper -d test/props
|
|
||||||
- uses: actions/upload-artifact@v1
|
|
||||||
if: failure()
|
|
||||||
with:
|
|
||||||
name: logs
|
|
||||||
path: apps/emqx/_build/test/logs
|
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: run
|
||||||
|
run: |
|
||||||
|
make ensure-rebar3
|
||||||
|
cp rebar3 apps/emqx/
|
||||||
|
cd apps/emqx
|
||||||
|
./rebar3 xref
|
||||||
|
./rebar3 dialyzer
|
||||||
|
./rebar3 eunit -v
|
||||||
|
./rebar3 ct -v
|
||||||
|
./rebar3 proper -d test/props
|
||||||
|
- uses: actions/upload-artifact@v1
|
||||||
|
if: failure()
|
||||||
|
with:
|
||||||
|
name: logs
|
||||||
|
path: apps/emqx/_build/test/logs
|
||||||
|
|
|
@ -11,12 +11,12 @@ jobs:
|
||||||
prepare:
|
prepare:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
container:
|
otp:
|
||||||
- "emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04"
|
- "23.2.7.2-emqx-2"
|
||||||
- "emqx/build-env:erl24.0.5-emqx-1-ubuntu20.04"
|
- "24.0.5-emqx-1"
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: ${{ matrix.container }}
|
container: "ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-ubuntu20.04"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
profile: ${{ steps.profile.outputs.profile }}
|
profile: ${{ steps.profile.outputs.profile }}
|
||||||
|
|
|
@ -11,12 +11,12 @@ jobs:
|
||||||
relup_test:
|
relup_test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
container:
|
otp:
|
||||||
- "emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04"
|
- "23.2.7.2-emqx-2"
|
||||||
- "emqx/build-env:erl24.0.5-emqx-1-ubuntu20.04"
|
- "24.0.5-emqx-1"
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: ${{ matrix.container }}
|
container: "ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-ubuntu20.04"
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|
|
@ -11,12 +11,12 @@ jobs:
|
||||||
run_static_analysis:
|
run_static_analysis:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
container:
|
otp:
|
||||||
- "emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04"
|
- "23.2.7.2-emqx-2"
|
||||||
- "emqx/build-env:erl24.0.5-emqx-1-ubuntu20.04"
|
- "24.0.5-emqx-1"
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: ${{ matrix.container }}
|
container: "ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-ubuntu20.04"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -34,12 +34,12 @@ jobs:
|
||||||
run_proper_test:
|
run_proper_test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
container:
|
otp:
|
||||||
- "emqx/build-env:erl23.2.7.2-emqx-2-ubuntu20.04"
|
- "23.2.7.2-emqx-2"
|
||||||
- "emqx/build-env:erl24.0.5-emqx-1-ubuntu20.04"
|
- "24.0.5-emqx-1"
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: ${{ matrix.container }}
|
container: "ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-ubuntu20.04"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ARG BUILD_FROM=emqx/build-env:erl23.2.7.2-emqx-2-alpine
|
ARG BUILD_FROM=ghcr.io/emqx/emqx-builder-helper/5.0:24.0.5-emqx-1-alpine3.14
|
||||||
ARG RUN_FROM=alpine:3.14
|
ARG RUN_FROM=alpine:3.14
|
||||||
FROM ${BUILD_FROM} AS builder
|
FROM ${BUILD_FROM} AS builder
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue