Skip to content

Commit dd3ca12

Browse files
authored
Merge the "bugfix/promote-dockerhub-use-normalized-tags" branch into the "develop" branch
This merge updates `.github/workflows/deployment.yml` to restore Docker Hub promotion reference construction from normalized tag outputs. The workflow now uses `steps.tag.outputs.tag` and `steps['promote-tag'].outputs.tag` to build Docker Hub source and destination references from `env.DOCKERHUB_IMAGE` instead of extracting full `docker.io/` entries from metadata output. In `Promote to Docker Hub Floating Tag`, the workflow now sets `SRC_TAG="${{ steps.tag.outputs.tag }}"` and `DEST_TAG="${{ steps['promote-tag'].outputs.tag }}"` instead of extracting Docker Hub references from `steps.meta.outputs.tags` and `steps.meta-promote.outputs.tags`. It then constructs `SRC="docker.io/${{ env.DOCKERHUB_IMAGE }}:${SRC_TAG}"` and `DEST="docker.io/${{ env.DOCKERHUB_IMAGE }}:${DEST_TAG}"` from those normalized tag outputs. This keeps Docker Hub promotion aligned with the configured `DOCKERHUB_IMAGE` repository while preserving normalized tag values emitted by the workflow. No other files or workflow jobs are modified by this merge.
2 parents 431e950 + 91b2010 commit dd3ca12

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/deployment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,11 @@ jobs:
295295
run: |
296296
set -e
297297
298-
FULL_TAGS="${{ steps.meta.outputs.tags }}"
299-
SRC=$(echo "$FULL_TAGS" | grep "^docker.io/" | head -n1)
298+
SRC_TAG="${{ steps.tag.outputs.tag }}"
299+
DEST_TAG="${{ steps.promote-tag.outputs.tag }}"
300300
301-
FULL_PROMOTE_TAGS="${{ steps.meta-promote.outputs.tags }}"
302-
DEST=$(echo "$FULL_PROMOTE_TAGS" | grep "^docker.io/" | head -n1)
301+
SRC="docker.io/${{ env.DOCKERHUB_IMAGE }}:${SRC_TAG}"
302+
DEST="docker.io/${{ env.DOCKERHUB_IMAGE }}:${DEST_TAG}"
303303
304304
echo "Creating manifest on Docker Hub: ${DEST} from ${SRC}"
305305

0 commit comments

Comments
 (0)