From 27494331762ed41b8d7b2623df3d9b54c5ab53fe Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Thu, 9 Nov 2023 21:41:06 +0100 Subject: [PATCH] Compile nginx w/ dynamic modules --- .drone.yml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index ab9d252..6fc1a2a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,14 +7,37 @@ platform: os: linux arch: amd64 +environment: + NGINX_VERSION: 1.24.0 + NGINX_MODULES_DIR: /opt/nginx-modules + HEADERS_MORE_VERSION: 'v0.35' + steps: - - name: Verify nginx confiy + - name: Compile nginx image: nginx:1.25-bookworm commands: - - nginx -t + - apt update + - apt install wget + - mkdir -p /opt/nginx-modules + - wget "https://github.com/openresty/headers-more-nginx-module/archive/refs/tags/$${HEADERS_MORE_VERSION}.tar.gz" + - tar -xvzf $${HEADERS_MORE_VERSION}.tar.gz + - mv headers-more-nginx-module-* $${NGINX_MODULES_DIR}/headers-more-nginx-module + - mkdir -p /opt/nginx + - wget "http://nginx.org/download/nginx-$${NGINX_VERSION}.tar.gz" + - tar -xvzf nginx-$${NGINX_VERSION}.tar.gz + - cd nginx-$${NGINX_VERSION} + - ./configure --prefix=/opt/nginx --add-dynamic-module=$${NGINX_MODULES_DIR}/headers-more-nginx-module --with-compat + - cd nginx-$${NGINX_VERSION} + - make + - make install + + - name: Verify nginx confiy + image: nginx:$${NGINX_VERSION}-bookworm + commands: + - nginx -p /opt/nginx -t --- kind: signature -hmac: f0a4a11afdeeb438700c0abb4a1a3f11c368b6b586cd53ab5735fd5ed4f43224 +hmac: 889f2181f1c89b0906b3a95b4fe08fb6a9e91faaf02059c4fe264dac06ce9c1d ...