Skip to content

Add workflow to deploy nginx configuration #1

Add workflow to deploy nginx configuration

Add workflow to deploy nginx configuration #1

name: Deploy Nginx Configuration
on:
push:
branches:
- main
jobs:
deploy-nginx:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Deploy nginx configuration
run: |
# Copy the configuration file to the nginx directory
sudo cp ./nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf
# Reload nginx to apply the new configuration
sudo systemctl reload nginx