Fix missing uv version in Docker image tags (#15263)

The change in https://github.com/astral-sh/uv/pull/15245 added a
variable to the step scope that's shadowed by the inner loop.

Closes https://github.com/astral-sh/uv/issues/15262
This commit is contained in:
Zanie Blue 2025-08-13 16:36:02 -05:00 committed by GitHub
parent 9a53806419
commit 3cc895a99a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -241,8 +241,8 @@ jobs:
# Loop through all base tags and append its docker metadata pattern to the list
# Order is on purpose such that the label org.opencontainers.image.version has the first pattern with the full version
IFS=','; for TAG in ${BASE_TAGS}; do
TAG_PATTERNS="${TAG_PATTERNS}type=pep440,pattern={{ version }},suffix=-${TAG},value=${TAG}\n"
TAG_PATTERNS="${TAG_PATTERNS}type=pep440,pattern={{ major }}.{{ minor }},suffix=-${TAG},value=${TAG}\n"
TAG_PATTERNS="${TAG_PATTERNS}type=pep440,pattern={{ version }},suffix=-${TAG},value=${VERSION}\n"
TAG_PATTERNS="${TAG_PATTERNS}type=pep440,pattern={{ major }}.{{ minor }},suffix=-${TAG},value=${VERSION}\n"
TAG_PATTERNS="${TAG_PATTERNS}type=raw,value=${TAG}\n"
done
@ -256,7 +256,7 @@ jobs:
echo EOF
} >> $GITHUB_ENV
env:
TAG: ${{ needs.docker-plan.outputs.tag }}
VERSION: ${{ needs.docker-plan.outputs.tag }}
- name: Extract metadata (tags, labels) for Docker
id: meta