Pull repos on startup
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2024-01-19 20:26:04 -08:00
parent 1b4c9bbdac
commit fbd6ea7fb2
1 changed files with 6 additions and 0 deletions

View File

@ -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)