File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
.github/actions/rpm/registry-image Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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
4
4
COPY entrypoint.sh /entrypoint.sh
5
5
ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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
-
7
3
set -eo pipefail
8
4
9
5
VERSION=${VERSION# refs/ tags/ }
10
6
7
+ echo " ::group::Marking workspace as safe"
8
+ git config --global --add safe.directory /github/workspace
9
+ echo ' ::endgroup::'
10
+
11
11
echo " ::group::Checking $NAME exists in $REF "
12
12
if [ " ${NAME} " != " log-courier" ] && [ ! -d " ${NAME} " ]; then
13
13
exit 0
@@ -49,7 +49,7 @@ cat >>~/.config/copr <<<"$COPR_CLI"
49
49
echo ' ::endgroup::'
50
50
51
51
echo ' ::group::Building SRPM'
52
- yum- builddep -y ~ /" rpmbuild/SPECS/${NAME} .spec"
52
+ dnf builddep -y ~ /" rpmbuild/SPECS/${NAME} .spec"
53
53
rpmbuild -bs ~ /" rpmbuild/SPECS/${NAME} .spec"
54
54
mkdir -p " $GITHUB_WORKSPACE " /artifacts
55
55
cp -rf ~ /rpmbuild/SRPMS/* .src.rpm " $GITHUB_WORKSPACE " /artifacts/
You can’t perform that action at this time.
0 commit comments