From 3cc895a99a96d1f94639170715e18e23cbd83f78 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 13 Aug 2025 16:36:02 -0500 Subject: [PATCH] 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 --- .github/workflows/build-docker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 3c43d671a..ec451559c 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -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