|
|
@@ -386,7 +386,22 @@ jobs:
|
|
|
username: ${{ secrets.DOCKER_HUB_USER }}
|
|
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
|
|
- uses: docker/build-push-action@v2
|
|
|
- if: github.event_name == 'release'
|
|
|
+ if: github.event_name == 'release' && github.event.release.prerelease
|
|
|
+ with:
|
|
|
+ push: true
|
|
|
+ pull: true
|
|
|
+ no-cache: true
|
|
|
+ platforms: linux/amd64,linux/arm64
|
|
|
+ tags: emqx/${{ matrix.profile }}:${{ steps.version.outputs.version }}
|
|
|
+ build-args: |
|
|
|
+ PKG_VSN=${{ steps.version.outputs.version }}
|
|
|
+ BUILD_FROM=ghcr.io/emqx/emqx-builder-helper/5.0:${{ matrix.otp }}-alpine3.14
|
|
|
+ RUN_FROM=alpine:3.14
|
|
|
+ EMQX_NAME=${{ matrix.profile }}
|
|
|
+ file: source/deploy/docker/Dockerfile
|
|
|
+ context: source
|
|
|
+ - uses: docker/build-push-action@v2
|
|
|
+ if: github.event_name == 'release' && !github.event.release.prerelease
|
|
|
with:
|
|
|
push: true
|
|
|
pull: true
|