Skip to content

Commit 2c8b64f

Browse files
committed
chore: Update actions docker to Alma Linux 9
1 parent 02c8ede commit 2c8b64f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM centos:7
2-
RUN yum -y install rpm-sign rpm-build epel-release ca-certificates centos-release-scl
3-
RUN yum -y install copr-cli golang rh-git218
1+
FROM almalinux:9
2+
RUN dnf -y install rpm-sign rpm-build epel-release ca-certificates
3+
RUN dnf -y install copr-cli golang git
44
COPY entrypoint.sh /entrypoint.sh
55
ENTRYPOINT ["/entrypoint.sh"]

.github/actions/rpm/registry-image/entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
22

3-
# Need git 2.x for shallow clones by golang
4-
# Do before enabling errors as it doesn't support set -e and will cause an immediate exit
5-
source scl_source enable rh-git218
6-
73
set -eo pipefail
84

95
VERSION=${VERSION#refs/tags/}
106

7+
echo "::group::Marking workspace as safe"
8+
git config --global --add safe.directory /github/workspace
9+
echo '::endgroup::'
10+
1111
echo "::group::Checking $NAME exists in $REF"
1212
if [ "${NAME}" != "log-courier" ] && [ ! -d "${NAME}" ]; then
1313
exit 0
@@ -49,7 +49,7 @@ cat >>~/.config/copr <<<"$COPR_CLI"
4949
echo '::endgroup::'
5050

5151
echo '::group::Building SRPM'
52-
yum-builddep -y ~/"rpmbuild/SPECS/${NAME}.spec"
52+
dnf builddep -y ~/"rpmbuild/SPECS/${NAME}.spec"
5353
rpmbuild -bs ~/"rpmbuild/SPECS/${NAME}.spec"
5454
mkdir -p "$GITHUB_WORKSPACE"/artifacts
5555
cp -rf ~/rpmbuild/SRPMS/*.src.rpm "$GITHUB_WORKSPACE"/artifacts/

0 commit comments

Comments
 (0)