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
22
main.go
Normal file
22
main.go
Normal 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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue