Add WARNING that downtime can't be avoided when upgrading Nginx #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test kickstart.sh | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: install Nginx from official repository | |
run: | | |
chmod +x ./kickstart.sh | |
echo "y" | sudo ./kickstart.sh -I | |
- name: Compile VTS | |
run: | | |
sed -i 's/\(^# load_module\|^ *# vhost_traffic_\)/\1/' ./etc/nginx/nginx.conf | |
sudo cp -rT ./etc/nginx /etc/nginx && sudo /etc/nginx/cloudflare-ips.sh | |
sudo ./kickstart.sh -V | |
- name: Test nginx config | |
run: | | |
sudo nginx -t |