summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Lebedeff <binarin@binarin.info>2021-07-22 11:05:35 +0200
committerAlexey Lebedeff <binarin@binarin.info>2021-07-22 11:05:35 +0200
commit0e60d5a9cd6db0a9886b8f358d90a12a9fcad3c6 (patch)
tree53bce2af69f382e0126ca9de41f757fbd6613469
parent08cf1f09f5355e26da3ca81e876c1bd2780bc1a1 (diff)
downloadrabbitmq-server-git-alebedeff/optimize-erlang-git-docker-image-detection.tar.gz
Query docker registry directly to fetch erlang-git digestalebedeff/optimize-erlang-git-docker-image-detection
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
-rw-r--r--.github/workflows/test-erlang-git.yaml5
1 files 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}" \