mirror of
				https://github.com/KevinMidboe/nginx.git
				synced 2025-10-29 17:50:26 +00:00 
			
		
		
		
	Compile nginx w/ dynamic modules
This commit is contained in:
		
							
								
								
									
										29
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										29
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -7,14 +7,37 @@ platform: | |||||||
|   os: linux |   os: linux | ||||||
|   arch: amd64 |   arch: amd64 | ||||||
|  |  | ||||||
|  | environment: | ||||||
|  |   NGINX_VERSION: 1.24.0 | ||||||
|  |   NGINX_MODULES_DIR: /opt/nginx-modules | ||||||
|  |   HEADERS_MORE_VERSION: 'v0.35' | ||||||
|  |  | ||||||
| steps: | steps: | ||||||
|   - name: Verify nginx confiy |   - name: Compile nginx | ||||||
|     image: nginx:1.25-bookworm |     image: nginx:1.25-bookworm | ||||||
|     commands: |     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 | kind: signature | ||||||
| hmac: f0a4a11afdeeb438700c0abb4a1a3f11c368b6b586cd53ab5735fd5ed4f43224 | hmac: 889f2181f1c89b0906b3a95b4fe08fb6a9e91faaf02059c4fe264dac06ce9c1d | ||||||
|  |  | ||||||
| ... | ... | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user