Compare commits
2 Commits
fd9f6cc178
...
9b06b8d7fb
Author | SHA1 | Date |
---|---|---|
Leon Mika | 9b06b8d7fb | |
Leon Mika | 1698a45416 |
|
@ -12,6 +12,6 @@ func readConfig() config {
|
|||
return config{
|
||||
HostName: os.Getenv("INPUT_HOST"),
|
||||
AppName: os.Getenv("INPUT_APP"),
|
||||
PrivateKey: os.Getenv("INPUT_PRIVATE_KEY"),
|
||||
PrivateKey: os.Getenv("INPUT_PRIVATE-KEY"),
|
||||
}
|
||||
}
|
||||
|
|
2
main.go
2
main.go
|
@ -5,6 +5,8 @@ import "log"
|
|||
func main() {
|
||||
cfg := readConfig()
|
||||
log.Println("Reading config")
|
||||
log.Printf(" .. host = %v", cfg.HostName)
|
||||
log.Printf(" .. app = %v", cfg.AppName)
|
||||
|
||||
svc := NewServices(cfg)
|
||||
|
||||
|
|
|
@ -94,8 +94,8 @@ var (
|
|||
Host *
|
||||
StrictHostKeyChecking no
|
||||
|
||||
Host {{.Cfg.Host}}
|
||||
HostName {{.Cfg.Host}}
|
||||
Host {{.Cfg.HostName}}
|
||||
HostName {{.Cfg.HostName}}
|
||||
User dokku
|
||||
IdentityFile {{.Home}}/.ssh/id_rsa
|
||||
`))
|
||||
|
|
Loading…
Reference in New Issue