Skip to content

Commit

Permalink
chore(images): use new image in more CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesmg committed Jan 26, 2022
1 parent a918807 commit e874ec2
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 18 deletions.
6 changes: 4 additions & 2 deletions .ci/docker-compose-file/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ version: '3.9'
services:
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:
- conf.env
environment:
Expand All @@ -23,7 +24,8 @@ services:

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:
- conf.env
environment:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/check_deps_integrity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on: [pull_request]
jobs:
check_deps_integrity:
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:
- uses: actions/checkout@v2
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/elixir_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,24 @@ on:
jobs:
build:
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:
- name: Checkout
uses: actions/[email protected]
- name: setup mix
run: |
mix local.hex --force
mix local.rebar --force
mix deps.get
- name: produce emqx.conf.all template
run: make conf-segs
- name: install tools
run: apt update && apt install netcat-openbsd
- name: elixir release
run: mix release --overwrite
run: make emqx-elixir
- name: start release
run: |
cd _build/dev/rel/emqx
cd _build/prod/rel/emqx
bin/emqx start
- name: check if started
run: |
sleep 10
nc -zv localhost 1883
cd _build/dev/rel/emqx
cd _build/prod/rel/emqx
bin/emqx ping
bin/emqx ctl status
6 changes: 5 additions & 1 deletion .github/workflows/run_api_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ jobs:
matrix:
otp:
- 24.1.5-3
elixir:
- 1.13.1
os:
- ubuntu20.04
arch:
- amd64
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:
- uses: actions/checkout@v2

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/run_emqx_app_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ jobs:
otp:
- 23.3.4.9-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:
- ubuntu20.04
arch:
- amd64

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:
- uses: actions/checkout@v2
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/run_relup_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@ jobs:
- emqx-enterprise
otp:
- 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:
- ubuntu20.04
arch:
- amd64

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:
run:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/run_test_cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
matrix:
otp:
- 24.1.5-3
elixir:
- 1.13.1
os:
- ubuntu20.04
arch:
- amd64

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:
- uses: actions/checkout@v2
Expand Down

0 comments on commit e874ec2

Please sign in to comment.