Skip to content

Commit

Permalink
Add workflow to deploy nginx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
haahauge authored and GitHub Enterprise committed Mar 19, 2025
1 parent 33a3e60 commit d2d403f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/workflow_template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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

0 comments on commit d2d403f

Please sign in to comment.