Skip to content

Commit

Permalink
chore: Update actions docker to Alma Linux 9
Browse files Browse the repository at this point in the history
  • Loading branch information
driskell committed Jul 30, 2024
1 parent 02c8ede commit 2c8b64f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/actions/rpm/registry-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM centos:7
RUN yum -y install rpm-sign rpm-build epel-release ca-certificates centos-release-scl
RUN yum -y install copr-cli golang rh-git218
FROM almalinux:9
RUN dnf -y install rpm-sign rpm-build epel-release ca-certificates
RUN dnf -y install copr-cli golang git
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
10 changes: 5 additions & 5 deletions .github/actions/rpm/registry-image/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash

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

set -eo pipefail

VERSION=${VERSION#refs/tags/}

echo "::group::Marking workspace as safe"
git config --global --add safe.directory /github/workspace
echo '::endgroup::'

echo "::group::Checking $NAME exists in $REF"
if [ "${NAME}" != "log-courier" ] && [ ! -d "${NAME}" ]; then
exit 0
Expand Down Expand Up @@ -49,7 +49,7 @@ cat >>~/.config/copr <<<"$COPR_CLI"
echo '::endgroup::'

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

0 comments on commit 2c8b64f

Please sign in to comment.