feat: enable building multiple almalinux releases
Build / build (pull_request) Successful in 1m36s

- create releases/{version} directories
- move almalinux8 to releases/8
- create almalinx9 build
- update makefile to work with multiple versions
This commit is contained in:
2024-12-20 19:39:40 +11:00
parent bf0efbc306
commit 9491ad8c61
15 changed files with 96 additions and 22 deletions
+24
View File
@@ -0,0 +1,24 @@
# Start with the base AlmaLinux 8.10 image
FROM almalinux:8.10
# Remove existing repos and copy custom repo files into the container
RUN rm -rf /etc/yum.repos.d/*.repo
# Copy from the local context into the container
COPY files/*.repo /etc/yum.repos.d/
# Install ca-certs
RUN curl -k -o internal-ca-certificates.rpm https://git.query.consul/unkin/-/packages/rpm/internal-ca-certificates/20240825-1.el8/files/756 && \
rpm -i internal-ca-certificates.rpm
# Clean and update the repository cache
RUN dnf clean all && \
dnf makecache
# Update the system and install required packages
RUN dnf update -y && \
dnf install -y curl git
# Cleanup
RUN dnf clean all && \
rm -rf /var/cache/dnf
+6
View File
@@ -0,0 +1,6 @@
[appstream]
name=appstream repository
baseurl=https://edgecache.query.consul/almalinux/8.10/AppStream/x86_64/os
gpgkey=https://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-8
enabled=1
gpgcheck=1
+6
View File
@@ -0,0 +1,6 @@
[baseos]
name=baseos repository
baseurl=https://edgecache.query.consul/almalinux/8.10/BaseOS/x86_64/os
gpgkey=https://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-8
enabled=1
gpgcheck=1
+6
View File
@@ -0,0 +1,6 @@
[epel]
name=epel repository
baseurl=https://edgecache.query.consul/epel/8/Everything/x86_64
gpgkey=https://edgecache.query.consul/epel/RPM-GPG-KEY-EPEL-8
enabled=1
gpgcheck=1
+6
View File
@@ -0,0 +1,6 @@
[powertools]
name=powertools repository
baseurl=https://edgecache.query.consul/almalinux/8.10/PowerTools/x86_64/os
gpgkey=https://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-8
enabled=1
gpgcheck=1
+16
View File
@@ -0,0 +1,16 @@
[unkin]
name=unkin repository
baseurl=https://git.query.consul/api/packages/unkin/rpm/almalinux/el8
gpgkey=https://git.query.consul/api/packages/unkin/rpm/repository.key
gpgcheck=False
[unkinben]
name=unkinben repository
baseurl=https://git.query.consul/api/packages/unkinben/rpm/el8
gpgcheck=False
gpgkey=https://git.query.consul/api/packages/unkinben/rpm/repository.key
[gitea-unkin-almalimnux-8]
name=unkin - Gitea - almalimnux - 8
baseurl=https://git.query.consul/api/packages/unkin/rpm/almalimnux/8
enabled=1
gpgcheck=1
gpgkey=https://git.query.consul/api/packages/unkin/rpm/repository.key
+24
View File
@@ -0,0 +1,24 @@
# Start with the base AlmaLinux 9.4 image
FROM almalinux:9.4
# Remove existing repos and copy custom repo files into the container
RUN rm -rf /etc/yum.repos.d/*.repo
# Copy from the local context into the container
COPY files/*.repo /etc/yum.repos.d/
# Install ca-certs
RUN curl -k -o internal-ca-certificates.rpm https://git.query.consul/unkin/-/packages/rpm/internal-ca-certificates/20240825-1.el8/files/756 && \
rpm -i internal-ca-certificates.rpm
# Clean and update the repository cache
RUN dnf clean all && \
dnf makecache
# Update the system and install required packages
RUN dnf update -y && \
dnf install -y curl-minimal git
# Cleanup
RUN dnf clean all && \
rm -rf /var/cache/dnf
+4
View File
@@ -0,0 +1,4 @@
[appstream]
name=appstream repository
baseurl=https://edgecache.query.consul/almalinux/9.4/AppStream/x86_64/os
gpgkey=http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-9
+4
View File
@@ -0,0 +1,4 @@
[baseos]
name=baseos repository
baseurl=https://edgecache.query.consul/almalinux/9.4/BaseOS/x86_64/os
gpgkey=http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-9
+4
View File
@@ -0,0 +1,4 @@
[crb]
name=crb repository
baseurl=https://edgecache.query.consul/almalinux/9.4/CRB/x86_64/os
gpgkey=http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-9
+4
View File
@@ -0,0 +1,4 @@
[epel]
name=epel repository
baseurl=https://edgecache.query.consul/epel/9/Everything/x86_64
gpgkey=http://edgecache.query.consul/epel/RPM-GPG-KEY-EPEL-9
+4
View File
@@ -0,0 +1,4 @@
[extras]
name=extras repository
baseurl=https://edgecache.query.consul/almalinux/9.4/extras/x86_64/os
gpgkey=http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-9
+4
View File
@@ -0,0 +1,4 @@
[highavailability]
name=highavailability repository
baseurl=https://edgecache.query.consul/almalinux/9.4/HighAvailability/x86_64/os
gpgkey=http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-9
+10
View File
@@ -0,0 +1,10 @@
[unkin]
name=unkin repository
baseurl=https://git.query.consul/api/packages/unkin/rpm/almalinux/el8
gpgcheck=False
gpgkey=https://git.query.consul/api/packages/unkin/rpm/repository.key
[unkinben]
name=unkinben repository
baseurl=https://git.query.consul/api/packages/unkinben/rpm/el9
gpgcheck=False
gpgkey=https://git.query.consul/api/packages/unkinben/rpm/repository.key