Skip to content

Commit 53b7906

Browse files
Fix missing metadata in docker-import-digests-push-manifest
1 parent 7edbaf4 commit 53b7906

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

actions/docker-import-digests-push-manifest/action.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ inputs:
2020
description: |
2121
Whether to push the manifest to the configured registries.
2222
default: "false"
23+
tags:
24+
description: | # TODO fill this in and update README
25+
tagsum ipsum
26+
required: true
2327

2428
runs:
2529
using: composite
@@ -99,12 +103,18 @@ runs:
99103
if: ${{ steps.prepare-vars.outputs.include-dockerhub == 'true' }}
100104
uses: ./_shared-workflows-docker-import-digests-push-manifest/actions/dockerhub-login
101105

106+
- name: Extract metadata (tags, labels) for Docker
107+
id: meta
108+
uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
109+
with:
110+
images: ${{ inputs.images }}
111+
tags: ${{ inputs.tags }}
112+
102113
- name: Create manifest list and push
103114
working-directory: ${{ runner.temp }}/digests
104115
shell: bash
105116
env:
106117
IMAGES: ${{ inputs.images }}
107-
DOCKER_METADATA_OUTPUT_JSON: ${{ inputs.docker-metadata-json }}
108118
PUSH: ${{ inputs.push }}
109119
run: |
110120
set -euo pipefail
@@ -136,8 +146,6 @@ runs:
136146
- name: Inspect image
137147
shell: bash
138148
if: ${{ inputs.push == 'true' }}
139-
env:
140-
DOCKER_METADATA_OUTPUT_JSON: ${{ inputs.docker-metadata-json }}
141149
run: |
142150
for tag in $(jq -r '.tags[]' <<< "$DOCKER_METADATA_OUTPUT_JSON"); do
143151
echo ""

0 commit comments

Comments
 (0)