Pull repos on startup
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
1b4c9bbdac
commit
fbd6ea7fb2
6
main.go
6
main.go
@ -10,6 +10,7 @@ import (
|
||||
"go.elara.ws/logger"
|
||||
"go.elara.ws/logger/log"
|
||||
"lure.sh/lure/pkg/loggerctx"
|
||||
"lure.sh/lure/pkg/repos"
|
||||
)
|
||||
|
||||
//go:embed static
|
||||
@ -27,6 +28,11 @@ func main() {
|
||||
|
||||
ctx := loggerctx.With(context.Background(), log.Logger)
|
||||
|
||||
err := repos.Pull(ctx, nil)
|
||||
if err != nil {
|
||||
log.Fatal("Error pulling repos").Err(err).Send()
|
||||
}
|
||||
|
||||
registerBadge(mux)
|
||||
registerSite(mux)
|
||||
registerAPI(mux)
|
||||
|
Loading…
Reference in New Issue
Block a user