vitalyliber / dokku-github-action

Deploy applications to Dokku
https://vitalyliber.com/courses/deploj-prilozhenij-s-dokku
MIT License
78 stars 33 forks source link

Add way to run action with/without a host key (1/4) #7

Closed WilliamMayor closed 4 years ago

WilliamMayor commented 4 years ago

I've pulled HOST_KEY out as a variable that the user can supply when setting up the action. This means that they can check the host key in advance, and then ensure that each deploy gets sent to the right host.

If you don't supply a host key then it will disable the host key checking completely.

As I started to play around with this feature there were a couple of other things I wanted to fiddle with. I've split them up into separate PRs so you can review/accept/decline them independently.

This "fixes" #6

WilliamMayor commented 4 years ago

Oh! I also added a pretty simple test runner and small set of tests. Just something so I could run the entrypoint script on my local machine and see if it could deploy something.