|
@@ -195,11 +195,18 @@ jobs:
|
|
|
arch:
|
|
|
- linux/amd64
|
|
|
- linux/arm64
|
|
|
+ os:
|
|
|
+ - [debian, "slim"]
|
|
|
+ - [alpine, "alpine"]
|
|
|
golang:
|
|
|
- 1.18.5
|
|
|
exclude:
|
|
|
- arch: linux/arm64
|
|
|
plugin: functions/labelImage
|
|
|
+ - os: [alpine,"alpine"]
|
|
|
+ plugin: functions/labelImage
|
|
|
+ - os: [alpine,"alpine"]
|
|
|
+ plugin: sinks/tdengine
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
@@ -210,13 +217,13 @@ jobs:
|
|
|
with:
|
|
|
image: tonistiigi/binfmt:latest
|
|
|
platforms: all
|
|
|
- - name: build debian plugins
|
|
|
+ - name: build plugins
|
|
|
run: |
|
|
|
docker run -i --rm \
|
|
|
-v $(pwd):/ekuiper \
|
|
|
--workdir /ekuiper \
|
|
|
--platform ${{ matrix.arch }} \
|
|
|
- ghcr.io/lf-edge/ekuiper/base:${{ matrix.golang }}-debian \
|
|
|
+ ghcr.io/lf-edge/ekuiper/base:${{ matrix.golang }}-${{ matrix.os[0] }} \
|
|
|
bash -euc "make ${{ matrix.plugin }}"
|
|
|
- name: Build ekuiper image
|
|
|
uses: docker/build-push-action@v2
|
|
@@ -226,8 +233,8 @@ jobs:
|
|
|
platforms: linux/amd64
|
|
|
push: false
|
|
|
load: true
|
|
|
- tags: docker.io/lfedge/ekuiper
|
|
|
- file: deploy/docker/Dockerfile-slim
|
|
|
+ tags: docker.io/lfedge/ekuiper-${{ matrix.os[0] }}
|
|
|
+ file: deploy/docker/Dockerfile-${{ matrix.os[1] }}
|
|
|
- name: test docker and plugins
|
|
|
if: matrix.arch == 'linux/amd64'
|
|
|
env:
|
|
@@ -237,7 +244,7 @@ jobs:
|
|
|
plugin_type=$(echo ${PLUGIN%%/*})
|
|
|
plugin_name=$(echo ${PLUGIN##*/})
|
|
|
|
|
|
- container_id=$(docker run -d -v $(pwd)/_plugins:/var/plugins docker.io/lfedge/ekuiper)
|
|
|
+ container_id=$(docker run -d -v $(pwd)/_plugins:/var/plugins docker.io/lfedge/ekuiper-${{ matrix.os[0] }})
|
|
|
ip_address=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $container_id)
|
|
|
os=$(docker exec -i ${container_id} sh -c "sed -n '/^ID=/p' /etc/os-release | sed -r 's/ID=(.*)/\1/g'" )
|
|
|
sleep 5
|