Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build-ubi-dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,5 @@ jobs:
build-args: |
NGINX=${{ needs.checks.outputs.nginx_version }}
NJS=${{ needs.checks.outputs.njs_version }}
secrets: |
${{ format('"rhel_license={0}"', secrets.RHEL_LICENSE) }}
11 changes: 5 additions & 6 deletions build/dependencies/Dockerfile.ubi
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ FROM nginx:1.27.4@sha256:91734281c0ebfc6f1aea979cffeed5079cfe786228a71cc6f1f46a2
FROM redhat/ubi9:9.5@sha256:be214e191bbe3f4d0f16a5a4f5642e1f32fccd6fae7d2b6c6acb066ba51fb507 AS rpm-build
ARG NGINX
ARG NJS
ENV NGINX_VERSION ${NGINX}
ENV NJS_VERSION ${NJS}


RUN mkdir -p /nginx/; \
ENV NGINX_VERSION=${NGINX}
ENV NJS_VERSION=${NJS}
RUN --mount=type=secret,id=rhel_license,dst=/tmp/rhel_license,mode=0644 mkdir -p /nginx/; \
# only build for ppc64le but make multiarch image for mounting
[ $(uname -p) = x86_64 ] && exit 0; \
[ $(uname -p) = aarch64 ] && exit 0; \
rpm --import https://nginx.org/keys/nginx_signing.key \
source /tmp/rhel_license \
&& rpm --import https://nginx.org/keys/nginx_signing.key \
&& MINOR_VERSION=$(echo ${NGINX_VERSION} | cut -d '.' -f 2) \
&& if [ $(( $MINOR_VERSION % 2)) -eq 0 ]; then echo mainline=""; else mainline="mainline/"; fi \
&& printf "%s\n" "[nginx]" "name=nginx src repo" \
Expand Down
Loading