All checks were successful
Build / build (pull_request) Successful in 48s
- upload/download artifacts instead of building build and deploy jobs - updated uv package with version in url - add ruff/0.8.1 package
25 lines
810 B
Docker
25 lines
810 B
Docker
# Start with the AlmaLinux 8.10 base image
|
|
FROM git.query.consul/unkin/almalinux8-buildagent:latest
|
|
|
|
# Create output directory for RPMs
|
|
RUN mkdir -p /app/dist
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
ARG PACKAGE_RELEASE
|
|
ENV PACKAGE_RELEASE=${PACKAGE_RELEASE}
|
|
ARG PACKAGE_VERSION
|
|
ENV PACKAGE_VERSION=${PACKAGE_VERSION}
|
|
|
|
# Copy nfpm.yaml from the context into the container
|
|
COPY nfpm.yaml /app/nfpm.yaml
|
|
|
|
# Download the required files
|
|
RUN wget -O /app/ruff-x86_64-unknown-linux-gnu.tar.gz https://github.com/astral-sh/ruff/releases/download/${PACKAGE_VERSION}/ruff-x86_64-unknown-linux-gnu.tar.gz && \
|
|
tar xf /app/ruff-x86_64-unknown-linux-gnu.tar.gz && \
|
|
mv /app/ruff-x86_64-unknown-linux-gnu/* /app/
|
|
|
|
# Default command to build RPMs
|
|
CMD nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm
|