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.
Dustin 2023-11-11 06:39:53 -06:00
parent 5f85a5a4fe
commit ca1c5124c5
1 changed files with 2 additions and 1 deletions

View File

@ -1,12 +1,13 @@
#!/bin/sh #!/bin/sh
ARCH="$(uname -m)"
REPO_HOST=jenkins@files.pyrocufflink.blue REPO_HOST=jenkins@files.pyrocufflink.blue
REPO_PATH=/srv/www/repohost/repos/dch/fedora/$(rpm --eval %fedora) REPO_PATH=/srv/www/repohost/repos/dch/fedora/$(rpm --eval %fedora)
ssh-add -l ssh-add -l
ssh-add -L ssh-add -L
case "$(uname -m)" in case "${ARCH}" in
x86_64) x86_64)
# only include the SRPM once # only include the SRPM once
include='*.rpm' include='*.rpm'