mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
🐛 fix: filter v-prefixed Docker tags in manifest creation (#12842)
This commit is contained in:
parent
5af5b80b83
commit
50dbc653fa
1 changed files with 3 additions and 1 deletions
4
.github/workflows/release-docker.yml
vendored
4
.github/workflows/release-docker.yml
vendored
|
|
@ -122,7 +122,9 @@ jobs:
|
|||
- name: Create manifest list and push
|
||||
working-directory: /tmp/digests
|
||||
run: |
|
||||
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
||||
# 过滤掉带 v 前缀的 tag(如 lobehub/lobehub:v2.1.29),只保留无 v 前缀的版本号和 latest
|
||||
TAGS=$(jq -cr '.tags | map(select(test(":v\\d") | not)) | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
|
||||
docker buildx imagetools create $TAGS \
|
||||
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
|
||||
|
||||
- name: Inspect image
|
||||
|
|
|
|||
Loading…
Reference in a new issue