Moved more_header nginx module into repo as submodule

This commit is contained in:
2023-11-09 22:11:54 +01:00
parent 419df60790
commit 1419563c6a
3 changed files with 23 additions and 7 deletions

View File

@@ -13,6 +13,11 @@ environment:
HEADERS_MORE_VERSION: 'v0.35' HEADERS_MORE_VERSION: 'v0.35'
steps: steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: Verify nginx config - name: Verify nginx config
image: ubuntu/nginx:1.24-23.10_beta image: ubuntu/nginx:1.24-23.10_beta
commands: commands:
@@ -21,19 +26,26 @@ steps:
- name: Compile nginx - name: Compile nginx
image: ubuntu/nginx:1.24-23.10_beta image: ubuntu/nginx:1.24-23.10_beta
commands: commands:
- NGINX_CONFIG_PATH=$(pwd)
- apt update - apt update
- apt install wget build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev -y - apt install -y
- mkdir -p /opt/nginx-modules wget
- wget "https://github.com/openresty/headers-more-nginx-module/archive/refs/tags/$${HEADERS_MORE_VERSION}.tar.gz" build-essential
- tar -xvzf $${HEADERS_MORE_VERSION}.tar.gz libpcre3
- mv headers-more-nginx-module-* $${NGINX_MODULES_DIR}/headers-more-nginx-module libpcre3-dev
- mkdir -p /opt/nginx zlib1g
zlib1g-dev
libssl-dev
tree
- wget "http://nginx.org/download/nginx-$${NGINX_VERSION}.tar.gz" - wget "http://nginx.org/download/nginx-$${NGINX_VERSION}.tar.gz"
- tar -xvzf nginx-$${NGINX_VERSION}.tar.gz - tar -xvzf nginx-$${NGINX_VERSION}.tar.gz
- cd nginx-$${NGINX_VERSION} - cd nginx-$${NGINX_VERSION}
- ./configure --prefix=/opt/nginx --add-dynamic-module=$${NGINX_MODULES_DIR}/headers-more-nginx-module --with-compat - ./configure --prefix=/opt/nginx
--add-dynamic-module=../modules-available/headers-more-nginx-module
--with-compat
- make - make
- make install - make install
- tree /opt/nginx
--- ---
kind: signature kind: signature

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "modules-available/headers-more-nginx-module"]
path = modules-available/headers-more-nginx-module
url = https://github.com/openresty/headers-more-nginx-module