feat: change to buildrunner
Build / build (pull_request) Successful in 51s

- cleaned up multiple layers
- removed deploy file
- updated deploy workflow
This commit is contained in:
2024-11-30 23:53:02 +11:00
parent 346861ff9a
commit 010d6a7b80
6 changed files with 4 additions and 21 deletions
-1
View File
@@ -1 +0,0 @@
almalinux/el8
-1
View File
@@ -1 +0,0 @@
almalinux/el8
+1 -14
View File
@@ -1,5 +1,5 @@
# Start with the AlmaLinux 8.10 base image
FROM git.query.consul/unkin/almalinux8:latest
FROM git.query.consul/unkin/almalinux8-buildagent:latest
# Create output directory for RPMs
RUN mkdir -p /app/dist
@@ -11,19 +11,6 @@ ARG PACKAGE_RELEASE
ENV PACKAGE_RELEASE=${PACKAGE_RELEASE}
ARG PACKAGE_VERSION
ENV PACKAGE_VERSION=${PACKAGE_VERSION}
ARG NFPM_VERSION
ENV NFPM_VERSION=${NFPM_VERSION}
# Clean and update the repository cache
RUN dnf clean all && \
dnf makecache
# Install build tools and dependencies for building RPMs
RUN dnf groupinstall -y 'Development Tools' && \
dnf install -y make cmake gcc gcc-c++ rpm rpmdevtools wget tar gzip
# Install nfpm using the RPM package
RUN dnf install -y https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm-${NFPM_VERSION}-1.x86_64.rpm
# Copy nfpm.yaml from the context into the container
COPY nfpm.yaml /app/nfpm.yaml