Skip to content

Commit d88571b

Browse files
fix: rectify bugs in release process (#404)
1 parent f9a4c63 commit d88571b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ image_tag="20.04"
3737
endif
3838
# Set arch to linux/amd64 if it's not defined
3939
arch ?= 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+
4050
buildx=0
4151
cache_from=type=local,src=/tmp/.buildx-cache
4252
cache_to=type=local,dest=/tmp/.buildx-cache

utils/publish-rpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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_

0 commit comments

Comments
 (0)