From d2d403fa5c1f500576f3e592db22c91e473ec9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Haugen?= Date: Wed, 19 Mar 2025 12:09:54 +0100 Subject: [PATCH] Add workflow to deploy nginx configuration --- .github/workflows/workflow_template.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/workflow_template.yml diff --git a/.github/workflows/workflow_template.yml b/.github/workflows/workflow_template.yml new file mode 100644 index 0000000..56c463a --- /dev/null +++ b/.github/workflows/workflow_template.yml @@ -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