Use cached homebrew nginx installer

This commit is contained in:
Yuri Astrakhan 2024-05-24 22:13:15 -04:00
parent 612ee9cb83
commit 538af153f5
1 changed files with 5 additions and 1 deletions

View File

@ -62,13 +62,17 @@ runs:
echo "log_dir=/var/log/nginx" >> $GITHUB_OUTPUT echo "log_dir=/var/log/nginx" >> $GITHUB_OUTPUT
echo "html_dir=$nginx_prefix/html" >> $GITHUB_OUTPUT echo "html_dir=$nginx_prefix/html" >> $GITHUB_OUTPUT
- name: Install NGINX with Homebrew (macOS)
uses: tecolicom/actions-use-homebrew-tools@v1
if: runner.os == 'macOS'
with: { tools: 'nginx' }
- name: Install NGINX (macOS) - name: Install NGINX (macOS)
id: init_macos id: init_macos
if: runner.os == 'macOS' if: runner.os == 'macOS'
shell: bash shell: bash
run: | run: |
echo "Init NGINX on ${{runner.os}} ${{runner.arch}} ${{runner.environment}} runner" echo "Init NGINX on ${{runner.os}} ${{runner.arch}} ${{runner.environment}} runner"
brew install nginx
brew services list | grep nginx brew services list | grep nginx
NGINX_BIN=$(which nginx) NGINX_BIN=$(which nginx)
nginx_info="$(sudo "$NGINX_BIN" -V 2>&1)" nginx_info="$(sudo "$NGINX_BIN" -V 2>&1)"