Closed thgreasi closed 1 year ago
@thgreasi I was wrong, since we are looking for the published docker image this should actually be a custom publish step that runs after docker publish.
Fine @klutchell let me try it
Hmm, it looks like custom publish runs at the same time as docker publish in Flowzone, so the image is not available yet.
We could change the Flowzone behaviour, or add a wait loop to keep inspecting the manifest until it is available.
something like
image="ghcr.io/balena-io/deploy-to-balena-action:${{ github.event.pull_request.head.sha }}"
while ! docker buildx imagetools inspect "${image}" >/dev/null 2>&1
do
echo "waiting for ${image}..."
sleep $(((RANDOM % 10) + 10))
done
LGTM
you are awesome @klutchell :clap:
Change-type: patch