File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 5959 build:buildbuddy --color=yes
6060
6161 build --action_env EXTRA_BUILDX_OPTS="--cache-from=type=gha --cache-to=type=gha"
62- build --action_env TEMP_REGISTRY="ghcr.io/rabbitmq/"
6362 EOF
6463
6564 - name : Build package-generic-unix
Original file line number Diff line number Diff line change @@ -48,27 +48,22 @@ CONTEXT="$$(mktemp -d)"
4848
4949cp $(locations :context-files) "$$CONTEXT"
5050
51- BASE_IMAGE="$${{TEMP_REGISTRY:=}} rabbitmq-base:{arch} "
51+ BASE_IMAGE="ghcr.io/ rabbitmq/rabbitmq -base"
5252
5353set -x
5454
5555docker import \\
5656 --platform linux/{arch} \\
5757 "$(location //packaging/base-image:image-{arch}.tar)" \\
58- $$BASE_IMAGE
58+ $$BASE_IMAGE:{arch}
5959
60- if [[ -n "$${{TEMP_REGISTRY}}" ]]; then
61- DIGEST="$$(docker push $$BASE_IMAGE | sed -n 's/.*\\ (sha256:[a-z0-9]*\\ ).*/\\ 1/p')"
62- # if we are pushing to the temp registry, then we use
63- # the digest to avoid race conditions on the tag
64- BASE_IMAGE="$${{TEMP_REGISTRY:=}}rabbitmq-base@$$DIGEST"
65- fi
60+ DIGEST="$$(docker push $$BASE_IMAGE:{arch} | sed -n 's/.*\\ (sha256:[a-z0-9]*\\ ).*/\\ 1/p')"
6661
6762docker buildx \\
6863 build \\
6964 "$$CONTEXT" \\
7065 --platform linux/{arch} \\
71- --build-arg BASE_IMAGE="$$BASE_IMAGE" \\
66+ --build-arg BASE_IMAGE="$$BASE_IMAGE@$$DIGEST " \\
7267 --build-arg RABBITMQ_VERSION="{rmq_version}" \\
7368 --output type=tar,dest=$(location image-{arch}.tar) $${{EXTRA_BUILDX_OPTS:-}}
7469""" .format (
Original file line number Diff line number Diff line change 1- ARG BASE_IMAGE=pivotalrabbitmq /rabbitmq-base:latest
1+ ARG BASE_IMAGE=ghcr.io /rabbitmq/rabbitmq -base:amd64
22FROM ${BASE_IMAGE}
33
44ENV ERLANG_INSTALL_PATH_PREFIX /opt/erlang
You can’t perform that action at this time.
0 commit comments