Deploy Nginx Reverse Proxy Config #4
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: Deploy Nginx Reverse Proxy Config | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
logLevel: | ||
description: 'Log level' | ||
required: true | ||
default: 'warning' | ||
type: choice | ||
options: | ||
- info | ||
- warning | ||
- debug | ||
tags: | ||
description: 'Test scenario tags' | ||
required: false | ||
type: boolean | ||
environment: | ||
description: 'Environment to run tests against' | ||
type: environment | ||
required: false | ||
jobs: | ||
deploy-nginx: | ||
steps: | ||
- name: Deploy Nginx | ||
runs-on: ubuntu-latest | ||
Check failure on line 29 in .github/workflows/deploy-nginx.yml GitHub Actions / Deploy Nginx Reverse Proxy ConfigInvalid workflow file
|
||
uses: easingthemes/ssh-deploy@main | ||
with: | ||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | ||
ARGS: "-rlgoDzvc -i" | ||
SOURCE: "deploy/webserver/proxy/test.gallowhead.com.conf" | ||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | ||
REMOTE_USER: ${{ secrets.REMOTE_USER }} | ||
TARGET: "/etc/nginx/sites-enabled/" | ||
EXCLUDE: "/dist/, /node_modules/" | ||
SCRIPT_BEFORE: | | ||
echo "Starting deployment ..." | ||
SCRIPT_AFTER: | | ||
ln -s /etc/nginx/sites-available/test.gallowhead.com.conf /etc/nginx/sites-enabled/ && nginx -t |