From 0eebc242fb612b0cac2b4828691ecf536b8db902 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Sun, 7 Jun 2026 08:56:21 +1000 Subject: [PATCH] New workflow for github action --- .github/workflows/docker-githubaction.yml | 2 +- release_instructions.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-githubaction.yml b/.github/workflows/docker-githubaction.yml index c2556cf7..3bd2a310 100644 --- a/.github/workflows/docker-githubaction.yml +++ b/.github/workflows/docker-githubaction.yml @@ -36,7 +36,7 @@ jobs: exit 1 fi - LATEST_DIGEST=$(docker buildx imagetools inspect "${IMAGE_NAME}:4" --format '{{.Digest}}') + LATEST_DIGEST=$(docker buildx imagetools inspect "${IMAGE_NAME}:4" --format '{{printf "%s" .Manifest.Digest}}') echo "Dockerfile pins: ${PINNED_DIGEST}" echo "mikefarah/yq:4 is: ${LATEST_DIGEST}" diff --git a/release_instructions.txt b/release_instructions.txt index 873ae4aa..9cb00b6c 100644 --- a/release_instructions.txt +++ b/release_instructions.txt @@ -9,7 +9,7 @@ - use github actions to publish docker and make github release - check github updated yq action in marketplace - update github-action/Dockerfile to pin the newly published docker image digest (must match the mikefarah/yq:4 manifest digest): - docker buildx imagetools inspect docker.io/mikefarah/yq:4 --format '{{.Digest}}' + docker buildx imagetools inspect docker.io/mikefarah/yq:4 --format '{{printf "%s" .Manifest.Digest}}' then update the FROM line in github-action/Dockerfile with the new digest: FROM mikefarah/yq:4@ - commit the Dockerfile change, then manually run the "Release Docker GitHub Action" workflow