push-to-dokku/config.go

18 lines
279 B
Go
Raw Permalink 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"),
2024-07-13 01:34:30 +00:00
PrivateKey: os.Getenv("INPUT_PRIVATE-KEY"),
}
}