push-to-dokku/config.go

18 lines
279 B
Go
Raw Normal View History

package main
import "os"
type config struct {
HostName string
AppName string
PrivateKey string
}
func readConfig() config {
return config{
2024-07-13 01:23:30 +00:00
HostName: os.Getenv("INPUT_HOST"),
AppName: os.Getenv("INPUT_APP"),
PrivateKey: os.Getenv("INPUT_PRIVATE_KEY"),
}
}