chore(images): use new image in more CI workflows
This commit is contained in:
parent
a91880780a
commit
e874ec2b36
|
@ -3,7 +3,8 @@ version: '3.9'
|
||||||
services:
|
services:
|
||||||
erlang23:
|
erlang23:
|
||||||
container_name: erlang23
|
container_name: erlang23
|
||||||
image: ghcr.io/emqx/emqx-builder/5.0-3:23.3.4.9-3-ubuntu20.04
|
# FIXME: use tagged version once merged
|
||||||
|
image: ghcr.io/emqx/emqx-builder/elixir:1.13.1-23.3.4.9-3-ubuntu20.04
|
||||||
env_file:
|
env_file:
|
||||||
- conf.env
|
- conf.env
|
||||||
environment:
|
environment:
|
||||||
|
@ -23,7 +24,8 @@ services:
|
||||||
|
|
||||||
erlang24:
|
erlang24:
|
||||||
container_name: erlang24
|
container_name: erlang24
|
||||||
image: ghcr.io/emqx/emqx-builder/5.0-3:24.1.5-3-ubuntu20.04
|
# FIXME: use tagged version once merged
|
||||||
|
image: ghcr.io/emqx/emqx-builder/elixir:1.13.1-24.1.5-3-ubuntu20.04
|
||||||
env_file:
|
env_file:
|
||||||
- conf.env
|
- conf.env
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -5,7 +5,8 @@ on: [pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
check_deps_integrity:
|
check_deps_integrity:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: "ghcr.io/emqx/emqx-builder/5.0-3:24.1.5-3-ubuntu20.04"
|
# FIXME: use tagged version once merged
|
||||||
|
container: ghcr.io/emqx/emqx-builder/elixir:1.13.1-23.3.4.9-3-ubuntu20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
@ -12,28 +12,24 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/emqx/emqx-builder/5.0-3:24.1.5-3-alpine3.14
|
# FIXME: use tagged version once merged
|
||||||
|
container: ghcr.io/emqx/emqx-builder/elixir:1.13.1-23.3.4.9-3-ubuntu20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2.4.0
|
||||||
- name: setup mix
|
- name: install tools
|
||||||
run: |
|
run: apt update && apt install netcat-openbsd
|
||||||
mix local.hex --force
|
|
||||||
mix local.rebar --force
|
|
||||||
mix deps.get
|
|
||||||
- name: produce emqx.conf.all template
|
|
||||||
run: make conf-segs
|
|
||||||
- name: elixir release
|
- name: elixir release
|
||||||
run: mix release --overwrite
|
run: make emqx-elixir
|
||||||
- name: start release
|
- name: start release
|
||||||
run: |
|
run: |
|
||||||
cd _build/dev/rel/emqx
|
cd _build/prod/rel/emqx
|
||||||
bin/emqx start
|
bin/emqx start
|
||||||
- name: check if started
|
- name: check if started
|
||||||
run: |
|
run: |
|
||||||
sleep 10
|
sleep 10
|
||||||
nc -zv localhost 1883
|
nc -zv localhost 1883
|
||||||
cd _build/dev/rel/emqx
|
cd _build/prod/rel/emqx
|
||||||
bin/emqx ping
|
bin/emqx ping
|
||||||
bin/emqx ctl status
|
bin/emqx ctl status
|
||||||
|
|
|
@ -17,12 +17,16 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
otp:
|
otp:
|
||||||
- 24.1.5-3
|
- 24.1.5-3
|
||||||
|
elixir:
|
||||||
|
- 1.13.1
|
||||||
os:
|
os:
|
||||||
- ubuntu20.04
|
- ubuntu20.04
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: "ghcr.io/emqx/emqx-builder/5.0-3:${{ matrix.otp }}-${{ matrix.os }}"
|
# FIXME: use tagged version once merged
|
||||||
|
container: ghcr.io/emqx/emqx-builder/elixir:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
|
|
@ -14,13 +14,19 @@ jobs:
|
||||||
otp:
|
otp:
|
||||||
- 23.3.4.9-3
|
- 23.3.4.9-3
|
||||||
- 24.1.5-3
|
- 24.1.5-3
|
||||||
|
# no need to use more than 1 version of Elixir, since tests
|
||||||
|
# run using only Erlang code. This is needed just to specify
|
||||||
|
# the base image.
|
||||||
|
elixir:
|
||||||
|
- 1.13.1
|
||||||
os:
|
os:
|
||||||
- ubuntu20.04
|
- ubuntu20.04
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: "ghcr.io/emqx/emqx-builder/5.0-3:${{ matrix.otp }}-${{ matrix.os }}"
|
# FIXME: use tagged version once merged
|
||||||
|
container: "ghcr.io/emqx/emqx-builder/elixir:${{ matrix.elixir}}-${{ matrix.otp }}-${{ matrix.os }}"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
@ -20,13 +20,19 @@ jobs:
|
||||||
- emqx-enterprise
|
- emqx-enterprise
|
||||||
otp:
|
otp:
|
||||||
- 24.1.5-3
|
- 24.1.5-3
|
||||||
|
# no need to use more than 1 version of Elixir, since tests
|
||||||
|
# run using only Erlang code. This is needed just to specify
|
||||||
|
# the base image.
|
||||||
|
elixir:
|
||||||
|
- 1.13.1
|
||||||
os:
|
os:
|
||||||
- ubuntu20.04
|
- ubuntu20.04
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: "ghcr.io/emqx/emqx-builder/5.0-3:${{ matrix.otp }}-${{ matrix.os }}"
|
# FIXME: use tagged version once merged
|
||||||
|
container: "ghcr.io/emqx/emqx-builder/elixir:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}"
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
|
|
@ -17,13 +17,15 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
otp:
|
otp:
|
||||||
- 24.1.5-3
|
- 24.1.5-3
|
||||||
|
elixir:
|
||||||
|
- 1.13.1
|
||||||
os:
|
os:
|
||||||
- ubuntu20.04
|
- ubuntu20.04
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: "ghcr.io/emqx/emqx-builder/5.0-3:${{ matrix.otp }}-${{ matrix.os }}"
|
container: "ghcr.io/emqx/emqx-builder/5.0-4:${{ matrix.elixir }}-${{ matrix.otp }}-${{ matrix.os }}"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
Loading…
Reference in New Issue