Skip to content

Commit f3a9310

Browse files
committed
Update build for brotli module
1 parent 4cbc65e commit f3a9310

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/build-brotli.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and release Brotli NGINX module
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "brotli-*"
8+
9+
jobs:
10+
build-brotli:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout source
15+
uses: actions/checkout@v3
16+
17+
- name: Build Brotli module
18+
run: |
19+
docker build -f build/Dockerfile.brotli -t brotli-builder .
20+
docker create --name extract brotli-builder
21+
docker cp extract:/usr/src/nginx-1.27.4/objs/ngx_http_brotli_filter_module.so .
22+
docker rm extract
23+
24+
- name: Upload Brotli module to GitHub Release
25+
uses: softprops/action-gh-release@v1
26+
with:
27+
files: ./ngx_http_brotli_filter_module.so
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build/Dockerfile.brotli

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ RUN apt-get update && apt-get install -y \
77
zlib1g-dev \
88
libssl-dev \
99
wget \
10-
cmake
10+
cmake \
11+
ca-certificates
1112

1213
WORKDIR /usr/src
1314
RUN git clone --recursive https://github.com/google/ngx_brotli.git

0 commit comments

Comments
 (0)