From 0e60d5a9cd6db0a9886b8f358d90a12a9fcad3c6 Mon Sep 17 00:00:00 2001 From: Alexey Lebedeff Date: Thu, 22 Jul 2021 11:05:35 +0200 Subject: Query docker registry directly to fetch erlang-git digest skopeo is listed as availiable in https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu1804-README.md This saves ~1Gb of network transfer and ~3Gb of disk usage --- .github/workflows/test-erlang-git.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-erlang-git.yaml b/.github/workflows/test-erlang-git.yaml index d7f4e61ab0..c5255db286 100644 --- a/.github/workflows/test-erlang-git.yaml +++ b/.github/workflows/test-erlang-git.yaml @@ -16,8 +16,9 @@ jobs: # buildbuddy caches the container image, so we must use a specific sha to ensure # the latest is used IMAGE=pivotalrabbitmq/rabbitmq-server-buildenv:linux-erlang-git-master - docker pull ${IMAGE} - PINNED_IMAGE="$(docker inspect --format='{{index .RepoDigests 0}}' $IMAGE)" + + PINNED_IMAGE=$(skopeo inspect --format '{{.Digest}}' docker://$IMAGE) + npm install @bazel/buildozer npx buildozer \ "dict_set exec_properties container-image:docker://${PINNED_IMAGE}" \ -- cgit v1.2.1