Merge pull request #9443 from id/ci-ensure-docker-latest-tag-on-releases
ci: automatically update emqx/emqx:latest on releases
This commit is contained in:
commit
9dc8713a01
|
@ -9,6 +9,9 @@ on:
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
- e*
|
- e*
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
branch_or_tag:
|
branch_or_tag:
|
||||||
|
@ -41,9 +44,14 @@ jobs:
|
||||||
cd source
|
cd source
|
||||||
tag=${{ github.ref }}
|
tag=${{ github.ref }}
|
||||||
# tag docker-latest-ce or docker-latest-ee
|
# tag docker-latest-ce or docker-latest-ee
|
||||||
if git describe --tags --exact --match 'docker-latest-*'; then
|
if git describe --tags --exact --match 'docker-latest-*' 2>/dev/null; then
|
||||||
|
echo 'docker_latest=true due to docker-latest-* tag'
|
||||||
|
docker_latest=true
|
||||||
|
elif [ "${{ github.event_name }}" = "release" ]; then
|
||||||
|
echo 'docker_latest=true due to release'
|
||||||
docker_latest=true
|
docker_latest=true
|
||||||
else
|
else
|
||||||
|
echo 'docker_latest=false'
|
||||||
docker_latest=false
|
docker_latest=false
|
||||||
fi
|
fi
|
||||||
if git describe --tags --match "[v|e]*" --exact; then
|
if git describe --tags --match "[v|e]*" --exact; then
|
||||||
|
|
Loading…
Reference in New Issue