Initial version of the push to Dokku action
This commit is contained in:
parent
b65b39a231
commit
2bb5d7f528
6 changed files with 169 additions and 0 deletions
17
config.go
Normal file
17
config.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package main
|
||||
|
||||
import "os"
|
||||
|
||||
type config struct {
|
||||
HostName string
|
||||
AppName string
|
||||
PrivateKey string
|
||||
}
|
||||
|
||||
func readConfig() config {
|
||||
return config{
|
||||
HostName: os.Getenv("host"),
|
||||
AppName: os.Getenv("app"),
|
||||
PrivateKey: os.Getenv("private-key"),
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue