|
@@ -38,29 +38,13 @@ jobs:
|
|
|
image: tonistiigi/binfmt:latest
|
|
|
platforms: all
|
|
|
- uses: docker/setup-buildx-action@v1
|
|
|
- - name: get docker sha256
|
|
|
- id: disgest
|
|
|
- run: |
|
|
|
- digest=$(docker buildx imagetools inspect ghcr.io/${{ github.repository }}/base:${{ matrix.golang }}-${{ matrix.os }} --raw | jq --raw-output '.manifests[] | select(.platform.architecture=="amd64").digest')
|
|
|
- echo "::set-output name=image::ghcr.io/${{ github.repository }}/base@${digest}"
|
|
|
- - run: docker pull ${{ steps.disgest.outputs.image }}
|
|
|
- - name: build base image
|
|
|
- uses: docker/build-push-action@v2
|
|
|
- with:
|
|
|
- pull: true
|
|
|
- load: true
|
|
|
- cache-from: ${{ steps.disgest.outputs.image }}
|
|
|
- platforms: ${{ matrix.arch }}
|
|
|
- build-args: GO_VERSION=${{ matrix.golang }}
|
|
|
- tags: ghcr.io/${{ github.repository }}/base:${{ matrix.golang }}-${{ matrix.os }}
|
|
|
- file: .github/dockerfile/Dockerfile.${{ matrix.os }}
|
|
|
- name: build
|
|
|
run: |
|
|
|
docker run -i --rm \
|
|
|
-v $(pwd):/ekuiper \
|
|
|
--workdir /ekuiper \
|
|
|
--platform ${{ matrix.arch }} \
|
|
|
- ghcr.io/${{ github.repository }}/base:${{ matrix.golang }}-${{ matrix.os }} \
|
|
|
+ ghcr.io/lf-edge/ekuiper/base:${{ matrix.golang }}-${{ matrix.os }} \
|
|
|
bash -euc "make pkg && .github/scripts/test.sh"
|
|
|
cd _packages && for var in $(ls); do sudo bash -c "echo $(sha256sum $var | awk '{print $1}') > $var.sha256"; done && cd -
|
|
|
- uses: actions/upload-artifact@v1
|
|
@@ -204,7 +188,7 @@ jobs:
|
|
|
-v $(pwd):/ekuiper \
|
|
|
--workdir /ekuiper \
|
|
|
--platform ${{ matrix.arch }} \
|
|
|
- ghcr.io/${{ github.repository }}/base:${{ matrix.golang }}-debian \
|
|
|
+ ghcr.io/lf-edge/ekuiper/base:${{ matrix.golang }}-debian \
|
|
|
bash -euc "make ${{ matrix.plugin }}"
|
|
|
- name: Build ekuiper image
|
|
|
uses: docker/build-push-action@v2
|