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:
Silvan
2023-07-17 10:08:20 +02:00
committed by GitHub
parent bcf4bfc585
commit 1c354ca977
64 changed files with 12290 additions and 21117 deletions

View File

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

View File

@@ -1,3 +0,0 @@
package statik
//go:generate statik -src=../v2/zitadel -dest=.. -ns=swagger