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 3a8eef7 commit 3046065
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 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 8
name: Build NGINX Tarball on CentOS Stream 8

on:
push:
Expand All @@ -16,17 +16,13 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v3

- name: Set up Docker
run: |
echo "Using Docker to run CentOS 8"
- name: Build NGINX in Docker
uses: docker://centos:8
with:
args: |
/bin/bash -c "
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 &&
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 &&
Expand Down

0 comments on commit 3046065

Please sign in to comment.