Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.05 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.05 KB

GitHubActionsTalk

build

Demo code for a talk on GitHub Actions delivered at SeaGL 2020.

Deployment

Host Setup

  1. Install ASP.NET Core Runtime 3.1 for Linux
  2. Install rsync: (sudo yum install -y rsync in CentOS8)
  3. Configure firewall to allow access to 80/tcp (CentOS8 commands below)
    • sudo firewall-cmd --zone=public --add-port 80/tcp --permanent
    • sudo firewall-cmd --reload

Code Deployment

  1. Build and publish to the published/ directory: dotnet publish --configuration Release --runtime centos.8-x64 --no-self-contained -o published src/Hello/Hello.csproj
  2. Export environment variables DEPLOY_USER and DEPLOY_HOST (e.g. export DEPLOY_USER=root and export DEPLOY_HOST=<host IP address>)
  3. Deploy from the published/ directory: deploy/deploy.sh published (assumes SSH keys are configured)