Deploy submodule and nginx config files

This commit is contained in:
2023-11-09 22:26:19 +01:00
parent 1419563c6a
commit 960e4b4015

View File

@@ -1,21 +1,26 @@
---
kind: pipeline
type: docker
name: Verify
name: Build & deploy
platform:
os: linux
arch: amd64
clone:
disable: true
environment:
NGINX_VERSION: 1.24.0
NGINX_MODULES_DIR: /opt/nginx-modules
HEADERS_MORE_VERSION: 'v0.35'
steps:
- name: submodules
- name: Clone w/ submodules
image: alpine/git
commands:
- git clone $DRONE_REPO_LINK .
- git checkout $DRONE_COMMIT
- git submodule update --init --recursive
- name: Verify nginx config
@@ -26,7 +31,7 @@ steps:
- name: Compile nginx
image: ubuntu/nginx:1.24-23.10_beta
commands:
- NGINX_CONFIG_PATH=$(pwd)
- mkdir -p $DRONE_WORKSPACE/nginx-build
- apt update
- apt install -y
wget
@@ -40,12 +45,16 @@ steps:
- 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
- ./configure --prefix=$DRONE_WORKSPACE/nginx-build
--add-dynamic-module=../modules-available/headers-more-nginx-module
--with-compat
- make
- make install
- tree /opt/nginx
- name: Deploy
image: alpine/git
commands:
- tree $DRONE_WORKSPACE/nginx-build
---
kind: signature