Initial version of the push to Dokku action

This commit is contained in:
Leon Mika 2024-07-13 10:48:01 +10:00
parent b65b39a231
commit 2bb5d7f528
6 changed files with 169 additions and 0 deletions

22
main.go Normal file
View file

@ -0,0 +1,22 @@
package main
import "log"
func main() {
cfg := readConfig()
log.Println("Reading config")
svc := NewServices(cfg)
if err := svc.AddPrivateKey(); err != nil {
log.Fatal(err)
}
if err := svc.ConfigureSSH(); err != nil {
log.Fatal(err)
}
if err := svc.PushRepository(); err != nil {
log.Fatal(err)
}
}