Skip to content

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

License

Notifications You must be signed in to change notification settings

CBielstein/GitHubActionsTalk

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks