Skip to content

Commit 2c4f799

Browse files
committed
The retry action lacks the output needed for the digests. Use metadata-file and read it in the next step
Signed-off-by: Adam Warner <[email protected]>
1 parent b349b00 commit 2c4f799

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ftl-build-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,20 @@ jobs:
101101
--platform ${{ matrix.platform }} \
102102
--target build \
103103
--label "${{ steps.meta.outputs.labels }}" \
104+
--metadata-file "/tmp/build-metadata-${{ env.PLATFORM_PAIR }}.json" \
104105
--output "type=image,name=${{ env.DOCKER_REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true" \
105106
ftl-build
106107
107108
- name: Export digests
108109
run: |
109110
mkdir -p /tmp/digests/
110-
digest="${{ steps.build.outputs.digest }}"
111+
digest="$(jq -r '\"containerimage.digest\"' "/tmp/build-metadata-${{ env.PLATFORM_PAIR }}.json")"
112+
113+
if [[ -z "${digest}" || "${digest}" == "null" ]]; then
114+
echo "Digest not found in buildx metadata file" >&2
115+
cat "/tmp/build-metadata-${{ env.PLATFORM_PAIR }}.json" >&2 || true
116+
exit 1
117+
fi
111118
touch "/tmp/digests/${digest#sha256:}"
112119
113120
- name: Upload digest

0 commit comments

Comments
 (0)