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: