Skip to content

Commit

Permalink
Update build-nginx-windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xumenghe1989 authored Nov 3, 2024
1 parent 3046065 commit dcba49b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build-nginx-windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build NGINX Tarball on CentOS Stream 8
name: Build NGINX on CentOS 8

on:
push:
Expand All @@ -10,27 +10,27 @@ on:

jobs:
build:
runs-on: ubuntu-latest # This is fine since we'll use Docker
runs-on: centos-8 # Use a CentOS 8 runner

steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Build NGINX in Docker
- name: Install dependencies
run: |
docker run --rm -v ${{ github.workspace }}:/workspace --workdir /workspace centos:stream8 /bin/bash -c "
# Set up DNS resolution
echo 'nameserver 8.8.8.8' > /etc/resolv.conf &&
yum install -y epel-release &&
yum install -y gcc make pcre-devel zlib-devel openssl-devel tar curl &&
curl -O http://nginx.org/download/nginx-1.20.1.tar.gz &&
tar -xvf nginx-1.20.1.tar.gz &&
cd nginx-1.20.1 &&
./configure --prefix=/usr --with-http_ssl_module --with-http_v2_module &&
make &&
make install DESTDIR=/nginx-install &&
cd /nginx-install &&
tar -czvf nginx-1.20.1.tar.gz ."
sudo yum install -y epel-release
sudo yum install -y gcc make pcre-devel zlib-devel openssl-devel tar curl
- name: Download and build NGINX
run: |
curl -O http://nginx.org/download/nginx-1.20.1.tar.gz
tar -xvf nginx-1.20.1.tar.gz
cd nginx-1.20.1
./configure --prefix=/usr --with-http_ssl_module --with-http_v2_module
make
make install DESTDIR=/nginx-install
cd /nginx-install
tar -czvf nginx-1.20.1.tar.gz .
- name: Upload NGINX tar.gz package
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit dcba49b

Please sign in to comment.