chore(CI): do not update latest tag for docker hub when pre-release
This commit is contained in:
parent
5f3b146f15
commit
bd00c7d3c7
|
@ -386,7 +386,22 @@ jobs:
|
||||||
username: ${{ secrets.DOCKER_HUB_USER }}
|
username: ${{ secrets.DOCKER_HUB_USER }}
|
||||||
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
- uses: docker/build-push-action@v2
|
- 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:
|
with:
|
||||||
push: true
|
push: true
|
||||||
pull: true
|
pull: true
|
||||||
|
|
Loading…
Reference in New Issue