File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,16 @@ image_tag="20.04"
3737endif
3838# Set arch to linux/amd64 if it's not defined
3939arch ?= linux/amd64
40+
41+ # Detect the CPU architecture
42+ CPU_ARCH := $(shell uname -m)
43+ # Map the architecture to Docker platform
44+ ifeq ($(CPU_ARCH ) , arm64)
45+ arch := linux/arm64
46+ else ifeq ($(CPU_ARCH), aarch64)
47+ arch := linux/arm64
48+ endif
49+
4050buildx =0
4151cache_from=type=local,src =/tmp/.buildx-cache
4252cache_to=type=local,dest =/tmp/.buildx-cache
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func_rpmsign_macros_init() {
2828# Macros for signing RPMs.
2929%_signature gpg
3030%_gpg_path ${HOME} /.gnupg
31- %_gpg_name ${GPG_NAME} ${ GPG_MAIL}
31+ %_gpg_name ${GPG_MAIL}
3232%_gpgbin /usr/bin/gpg
3333%__gpg_sign_cmd %{__gpg} gpg --batch --verbose --no-armor --pinentry-mode loopback --passphrase-file ${VAR_GPG_PASSPHRASE} --no-secmem-warning -u "%{_gpg_name}" -sbo %{__signature_filename} --digest-algo sha256 %{__plaintext_filename}
3434_EOC_
You can’t perform that action at this time.
0 commit comments