mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 00:56:37 +08:00
[优化] 更新 docker-image.yml,调整浮动标签逻辑以支持 beta 版本
This commit is contained in:
@@ -172,9 +172,15 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${VERSION}" =~ (alpha|beta|rc) ]]; then
|
||||||
|
FLOATING_TAG="beta"
|
||||||
|
else
|
||||||
|
FLOATING_TAG="latest"
|
||||||
|
fi
|
||||||
|
|
||||||
docker buildx imagetools create \
|
docker buildx imagetools create \
|
||||||
-t "${IMAGE}:${VERSION}" \
|
-t "${IMAGE}:${VERSION}" \
|
||||||
-t "${IMAGE}:latest" \
|
-t "${IMAGE}:${FLOATING_TAG}" \
|
||||||
"${references[@]}"
|
"${references[@]}"
|
||||||
|
|
||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
@@ -335,9 +341,15 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${VERSION}" =~ (alpha|beta|rc) ]]; then
|
||||||
|
FLOATING_TAG="beta"
|
||||||
|
else
|
||||||
|
FLOATING_TAG="latest"
|
||||||
|
fi
|
||||||
|
|
||||||
docker buildx imagetools create \
|
docker buildx imagetools create \
|
||||||
-t "${IMAGE}:${VERSION}" \
|
-t "${IMAGE}:${VERSION}" \
|
||||||
-t "${IMAGE}:latest" \
|
-t "${IMAGE}:${FLOATING_TAG}" \
|
||||||
"${references[@]}"
|
"${references[@]}"
|
||||||
|
|
||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
|
|||||||
Reference in New Issue
Block a user