Compare commits

..

2 commits

Author SHA1 Message Date
Leon Mika 9b06b8d7fb Fixed private key env var 2024-07-13 11:34:30 +10:00
Leon Mika 1698a45416 Fixed bug in template 2024-07-13 11:31:33 +10:00
3 changed files with 5 additions and 3 deletions

View file

@ -12,6 +12,6 @@ func readConfig() config {
return config{ return config{
HostName: os.Getenv("INPUT_HOST"), HostName: os.Getenv("INPUT_HOST"),
AppName: os.Getenv("INPUT_APP"), AppName: os.Getenv("INPUT_APP"),
PrivateKey: os.Getenv("INPUT_PRIVATE_KEY"), PrivateKey: os.Getenv("INPUT_PRIVATE-KEY"),
} }
} }

View file

@ -5,6 +5,8 @@ import "log"
func main() { func main() {
cfg := readConfig() cfg := readConfig()
log.Println("Reading config") log.Println("Reading config")
log.Printf(" .. host = %v", cfg.HostName)
log.Printf(" .. app = %v", cfg.AppName)
svc := NewServices(cfg) svc := NewServices(cfg)

View file

@ -94,8 +94,8 @@ var (
Host * Host *
StrictHostKeyChecking no StrictHostKeyChecking no
Host {{.Cfg.Host}} Host {{.Cfg.HostName}}
HostName {{.Cfg.Host}} HostName {{.Cfg.HostName}}
User dokku User dokku
IdentityFile {{.Home}}/.ssh/id_rsa IdentityFile {{.Home}}/.ssh/id_rsa
`)) `))