Skip to content

Add nginx deployment workflow and configuration #1

Add nginx deployment workflow and configuration

Add nginx deployment workflow and configuration #1

Workflow file for this run

name: Deploy Nginx Configuration
on:
push:
branches:
- main
paths:
- 'nginx_securefit.conf'
- '.github/workflows/nginx-deploy.yml'
jobs:
deploy-nginx:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Deploy nginx configuration
run: |
sudo cp -v ./nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf
sudo nginx -t
sudo systemctl reload nginx
- name: Verify nginx configuration
run: |
curl -I http://localhost
sudo systemctl status nginx