Skip to content

Commit

Permalink
rpm: add almalinux 8 and 9
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Feb 6, 2024
1 parent d70a116 commit f44da7c
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ include common/packages.mk

GHA_MATRIX ?= minimal
ifeq ($(GHA_MATRIX),minimal)
GHA_RELEASES := debian10 debian11 debian12 ubuntu2004 ubuntu2204 ubuntu2310 centos7 centos9 oraclelinux7 fedora39 rockylinux9 static
GHA_RELEASES := debian10 debian11 debian12 ubuntu2004 ubuntu2204 ubuntu2310 centos7 centos9 oraclelinux7 fedora39 rockylinux9 almalinux9 static
else ifeq ($(GHA_MATRIX),all)
GHA_RELEASES := $(PKG_DEB_RELEASES) $(PKG_RPM_RELEASES) static
else
Expand Down
22 changes: 22 additions & 0 deletions common/packages.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,28 @@ target "_pkg-rockylinux9" {
}
}

target "_pkg-almalinux8" {
args = {
PKG_RELEASE = "almalinux8"
PKG_TYPE = "rpm"
PKG_DISTRO = "almalinux"
PKG_DISTRO_ID = "8"
PKG_DISTRO_SUITE = "8"
PKG_BASE_IMAGE = "almalinux:8"
}
}

target "_pkg-almalinux9" {
args = {
PKG_RELEASE = "almalinux9"
PKG_TYPE = "rpm"
PKG_DISTRO = "almalinux"
PKG_DISTRO_ID = "9"
PKG_DISTRO_SUITE = "9"
PKG_BASE_IMAGE = "almalinux:9"
}
}

target "_pkg-static" {
args = {
PKG_RELEASE = ""
Expand Down
20 changes: 19 additions & 1 deletion common/packages.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# if you add a new release
PKG_APK_RELEASES ?= alpine314 alpine315 alpine316
PKG_DEB_RELEASES ?= debian10 debian11 debian12 ubuntu2004 ubuntu2204 ubuntu2304 ubuntu2310 raspbian10 raspbian11 raspbian12
PKG_RPM_RELEASES ?= centos7 centos8 centos9 fedora37 fedora38 fedora39 oraclelinux7 oraclelinux8 oraclelinux9 rockylinux8 rockylinux9
PKG_RPM_RELEASES ?= centos7 centos8 centos9 fedora37 fedora38 fedora39 oraclelinux7 oraclelinux8 oraclelinux9 rockylinux8 rockylinux9 almalinux8 almalinux9

# PKG_SUPPORTED_PLATFORMS could be replaced by:
# docker buildx imagetools inspect centos:7 --format "{{json .Manifest}}" | jq -r '.manifests[] | "\(.platform.os)/\(.platform.architecture)/\(.platform.variant)"' | sed 's#/null$##' | tr '\n' ',' | sed 's#,$##'
Expand Down Expand Up @@ -259,6 +259,24 @@ pkg-info-rockylinux9:
$(eval PKG_BASE_IMAGE = rockylinux/rockylinux:9)
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64)

.PHONY: pkg-info-almalinux8
pkg-info-almalinux8:
$(eval PKG_TYPE = rpm)
$(eval PKG_DISTRO = almalinux)
$(eval PKG_DISTRO_ID = 8)
$(eval PKG_DISTRO_SUITE = 8)
$(eval PKG_BASE_IMAGE = almalinux:8)
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64 linux/ppc64le linux/s390x)

.PHONY: pkg-info-almalinux9
pkg-info-almalinux9:
$(eval PKG_TYPE = rpm)
$(eval PKG_DISTRO = almalinux)
$(eval PKG_DISTRO_ID = 9)
$(eval PKG_DISTRO_SUITE = 9)
$(eval PKG_BASE_IMAGE = almalinux:9)
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64 linux/ppc64le linux/s390x)

.PHONY: pkg-info-static
pkg-info-static:
$(eval PKG_TYPE = static)
Expand Down
6 changes: 3 additions & 3 deletions common/scripts/rpm-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ case "$pkgrelease" in
fedora*)
dnf install -y git rpm-build rpmlint dnf-plugins-core
;;
rockylinux8)
rockylinux8|almalinux8)
dnf install -y git rpm-build rpmlint dnf-plugins-core epel-release
dnf config-manager --set-enabled devel
dnf config-manager --set-enabled powertools
;;
rockylinux*)
rockylinux*|almalinux*)
dnf install -y git rpm-build rpmlint dnf-plugins-core epel-release
dnf config-manager --set-enabled crb
;;
Expand Down
6 changes: 3 additions & 3 deletions common/scripts/verify-rpm-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ case "$pkgrelease" in
fedora*)
dnf install -y findutils dnf-plugins-core
;;
rockylinux8)
rockylinux8|almalinux8)
dnf install -y findutils dnf-plugins-core epel-release
dnf config-manager --set-enabled devel
dnf config-manager --set-enabled powertools
;;
rockylinux*)
rockylinux*|almalinux*)
dnf install -y findutils dnf-plugins-core epel-release
dnf config-manager --set-enabled crb
;;
Expand Down
4 changes: 2 additions & 2 deletions pkg/credential-helpers/verify.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ RUN --mount=from=bin-folder,target=/build <<EOT
extraflags=""
case "$PKG_RELEASE" in
# required pass package not available
centos7|oraclelinux9|rockylinux8)
centos7|oraclelinux9|rockylinux8|almalinux8)
extraflags="--skip-broken"
;;
centos9)
Expand All @@ -89,7 +89,7 @@ RUN --mount=from=bin-folder,target=/build <<EOT
docker-credential-secretservice version
case "$PKG_RELEASE" in
# FIXME: skip pass credential helper smoke test for some distros
centos7|centos9|oraclelinux9|rockylinux8) ;;
centos7|centos9|oraclelinux9|rockylinux8|almalinux8) ;;
*) docker-credential-pass version ;;
esac
EOT
Expand Down

0 comments on commit f44da7c

Please sign in to comment.