From 514634e541a57e070cad77ff2f1b99a1754f5b41 Mon Sep 17 00:00:00 2001 From: zhanghongtong Date: Tue, 4 Jan 2022 16:32:32 +0800 Subject: [PATCH] ci(build_packages): if it's enterprise, use Dockerfile.enterprise --- .github/workflows/build_packages.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build_packages.yaml b/.github/workflows/build_packages.yaml index a7f691735..032011056 100644 --- a/.github/workflows/build_packages.yaml +++ b/.github/workflows/build_packages.yaml @@ -369,6 +369,7 @@ jobs: username: ${{ secrets.DOCKER_HUB_USER }} password: ${{ secrets.DOCKER_HUB_TOKEN }} - uses: docker/build-push-action@v2 + if: matrix.profile != 'emqx-ee' with: push: ${{ github.event_name == 'release' && !github.event.release.prerelease }} pull: true @@ -382,6 +383,21 @@ jobs: EMQX_NAME=${{ matrix.profile }} file: source/deploy/docker/Dockerfile context: source + - uses: docker/build-push-action@v2 + if: matrix.profile == 'emqx-ee' + with: + push: ${{ github.event_name == 'release' && !github.event.release.prerelease }} + pull: true + no-cache: true + platforms: linux/amd64,linux/arm64 + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + build-args: | + BUILD_FROM=emqx/build-env:erl23.2.7.2-emqx-3-alpine + RUN_FROM=alpine:3.12 + EMQX_NAME=${{ matrix.profile }} + file: source/deploy/docker/Dockerfile.enterprise + context: source - uses: aws-actions/configure-aws-credentials@v1 if: github.event_name == 'release' && !github.event.release.prerelease && matrix.profile == 'emqx' with: