feat: add /oauth/callback and /api/oauth/poll relay endpoints
Build and Push Image / build (push) Failing after 17s

This commit is contained in:
nandi committed 2026-11-17 21:36:15 +00:00
1 parent 10650eee47
commit ce459f69b1
3 files changed
+253 -5

No files matched your search

+10 -5
View File
@@ -23,11 +23,12 @@ import (
var webFS embed.FS
type Server struct {
cfg config.Config
store *store.Store
svc *deployer.Service
k8s k8s.Applier
mux *http.ServeMux
cfg config.Config
store *store.Store
svc *deployer.Service
k8s k8s.Applier
oauth *oauthRelayStore
mux *http.ServeMux
}
func New(cfg config.Config, st *store.Store, svc *deployer.Service, ka k8s.Applier) *Server {
@@ -36,6 +37,7 @@ func New(cfg config.Config, st *store.Store, svc *deployer.Service, ka k8s.Appli
store: st,
svc: svc,
k8s: ka,
oauth: newOAuthRelayStore(),
mux: http.NewServeMux(),
}
s.routes()
@@ -52,6 +54,9 @@ func (s *Server) routes() {
s.mux.HandleFunc("GET /readyz", s.handleReadyz)
s.mux.HandleFunc("GET /metrics", s.handleMetrics)
s.mux.HandleFunc("GET /oauth/callback", s.handleOAuthCallback)
s.mux.HandleFunc("GET /api/oauth/poll", s.handleOAuthPoll)
s.mux.HandleFunc("POST /webhook/gitea", s.handleGiteaWebhook)
s.mux.HandleFunc("GET /api/apps", s.handleListApps)