Skip to content
Snippets Groups Projects
Commit 975ce49f authored by Xiao Gui's avatar Xiao Gui
Browse files

fix docker build

parent f32b45c6
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,10 @@ jobs:
echo "Successfully built $DOCKER_BUILT_TAG"
echo "DOCKER_BUILT_TAG=$DOCKER_BUILT_TAG" >> $GITHUB_ENV
IMAGE_DIGEST=$(docker inspect --format='{{ index .RepoDigests 0 }}' $DOCKER_BUILT_TAG)
inspect_str=$(docker inspect --format='json' $DOCKER_BUILT_TAG)
echo "Inspected tag: $inspect_str"
IMAGE_DIGEST=$(echo $inspect_str | jq -r '.[0].RepoDigests[0]')
echo "Built image digest: $IMAGE_DIGEST"
echo "IMAGE_DIGEST=$IMAGE_DIGEST" >> $GITHUB_OUTPUT
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment