From ca1c5124c57e083eb9c2cdfac6b8818ed69b27b8 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 11 Nov 2023 06:39:53 -0600 Subject: [PATCH] ci: publish-client: Use Linux arch name The `ARCH` environment varible set by the Jenkins pipeline uses the Kubernetes names for CPU architectures. RPMs use the Linux kernel names, which are not the same. Using the former, therefore, in the `include` filter for `rsync` results in no packages being uploaded to the repository. --- ci/publish-client.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/publish-client.sh b/ci/publish-client.sh index 1d22c8a..1a7977b 100644 --- a/ci/publish-client.sh +++ b/ci/publish-client.sh @@ -1,12 +1,13 @@ #!/bin/sh +ARCH="$(uname -m)" REPO_HOST=jenkins@files.pyrocufflink.blue REPO_PATH=/srv/www/repohost/repos/dch/fedora/$(rpm --eval %fedora) ssh-add -l ssh-add -L -case "$(uname -m)" in +case "${ARCH}" in x86_64) # only include the SRPM once include='*.rpm'