Skip to content

Commit 9c0f501

Browse files
committed
fix: use image_name for metadata path instead of repo_name
Ensures build metadata is uploaded to the same path as the images when a custom image_name is provided.
1 parent faaf6e4 commit 9c0f501

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ jobs:
234234
id: metadata
235235
if: inputs.push
236236
run: |
237-
REPO_NAME="${{ steps.vars.outputs.repo_name }}"
237+
IMAGE_NAME="${{ steps.vars.outputs.image_name }}"
238238
BUILD_ID="${{ steps.vars.outputs.build_id }}"
239-
METADATA_PATH="docker-build-metadata/${REPO_NAME}/builds/${BUILD_ID}"
239+
METADATA_PATH="docker-build-metadata/${IMAGE_NAME}/builds/${BUILD_ID}"
240240
METADATA_URL="https://${{ inputs.registry_host }}/artifactory/${METADATA_PATH}/index.json"
241241
242242
echo "Uploading build metadata to: ${METADATA_URL}"

0 commit comments

Comments
 (0)