When needing to deploy lk (GO binary) I was doing the following:

  1. Git commit
  2. Git tag & push
  3. ssh to my server
  4. Turn off systemd service and run a Powershell script (that pulled from Github releases and unzipped the binary)

This seems a bit like overkill for personal projects / homelab.

In 907000f I updated my makefile to build and scp the binary to my server.

Currently I have to ssh and manually turn off the service, but I’ll add that to the makefile in time.

Goes to show simple commands like scp that have been around for decades are obviously useful.

Wikipedia does say that scp is depracated for rsync; that is fair. But I’m KISS.