mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 14:47:33 +00:00
ci: improve performance (#5953)
* pipeline runs on ubuntu instead of docker * added Makefile to build zitadel core (backend) and console (frontend) * pipeline runs in parallel where possible * pipeline is split into multiple jobs * removed goreleaser * added command to check if zitadel instance is running
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"net/http"
|
||||
|
||||
"github.com/rakyll/statik/fs"
|
||||
"github.com/rs/cors"
|
||||
|
||||
_ "github.com/zitadel/zitadel/openapi/statik"
|
||||
)
|
||||
|
||||
const (
|
||||
HandlerPrefix = "/openapi/v2/swagger"
|
||||
)
|
||||
|
||||
//go:embed v2/zitadel/*
|
||||
var openapi embed.FS
|
||||
|
||||
func Start() (http.Handler, error) {
|
||||
statikFS, err := fs.NewWithNamespace("swagger")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
handler := &http.ServeMux{}
|
||||
handler.Handle("/", cors.AllowAll().Handler(http.FileServer(statikFS)))
|
||||
handler.Handle("/", cors.AllowAll().Handler(http.FileServer(http.FS(openapi))))
|
||||
return handler, nil
|
||||
}
|
||||
|
@@ -1,3 +0,0 @@
|
||||
package statik
|
||||
|
||||
//go:generate statik -src=../v2/zitadel -dest=.. -ns=swagger
|
Reference in New Issue
Block a user