Add build-essentials apt package for cc

This commit is contained in:
2023-11-09 21:55:27 +01:00
parent a05620bb15
commit 419df60790

View File

@@ -13,11 +13,16 @@ environment:
HEADERS_MORE_VERSION: 'v0.35' HEADERS_MORE_VERSION: 'v0.35'
steps: steps:
- name: Verify nginx config
image: ubuntu/nginx:1.24-23.10_beta
commands:
- nginx -t
- name: Compile nginx - name: Compile nginx
image: ubuntu/nginx:1.24-23.10_beta image: ubuntu/nginx:1.24-23.10_beta
commands: commands:
- apt update - apt update
- apt install wget -y - apt install wget build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev libssl-dev -y
- mkdir -p /opt/nginx-modules - mkdir -p /opt/nginx-modules
- wget "https://github.com/openresty/headers-more-nginx-module/archive/refs/tags/$${HEADERS_MORE_VERSION}.tar.gz" - wget "https://github.com/openresty/headers-more-nginx-module/archive/refs/tags/$${HEADERS_MORE_VERSION}.tar.gz"
- tar -xvzf $${HEADERS_MORE_VERSION}.tar.gz - tar -xvzf $${HEADERS_MORE_VERSION}.tar.gz
@@ -27,15 +32,9 @@ steps:
- 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=$${NGINX_MODULES_DIR}/headers-more-nginx-module --with-compat
- cd nginx-$${NGINX_VERSION}
- make - make
- make install - make install
- name: Verify nginx confiy
image: nginx:$${NGINX_VERSION}-bookworm
commands:
- nginx -p /opt/nginx -t
--- ---
kind: signature kind: signature
hmac: 889f2181f1c89b0906b3a95b4fe08fb6a9e91faaf02059c4fe264dac06ce9c1d hmac: 889f2181f1c89b0906b3a95b4fe08fb6a9e91faaf02059c4fe264dac06ce9c1d