ci(buildkite): perform frontend install for renovate deps (#2463)
parent
26de57a297
commit
982e1c2638
|
@ -65,7 +65,7 @@ func buildAutheliaBinary(xflags []string, buildkite bool) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildFrontend() {
|
func buildFrontend(branch string) {
|
||||||
cmd := utils.CommandWithStdout("pnpm", "install", "--shamefully-hoist")
|
cmd := utils.CommandWithStdout("pnpm", "install", "--shamefully-hoist")
|
||||||
cmd.Dir = webDirectory
|
cmd.Dir = webDirectory
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ func buildFrontend() {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !strings.HasPrefix(branch, "renovate/") {
|
||||||
cmd = utils.CommandWithStdout("pnpm", "build")
|
cmd = utils.CommandWithStdout("pnpm", "build")
|
||||||
cmd.Dir = webDirectory
|
cmd.Dir = webDirectory
|
||||||
|
|
||||||
|
@ -84,6 +85,7 @@ func buildFrontend() {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func buildSwagger() {
|
func buildSwagger() {
|
||||||
swaggerVer := "3.52.3"
|
swaggerVer := "3.52.3"
|
||||||
|
@ -140,6 +142,7 @@ func Build(cobraCmd *cobra.Command, args []string) {
|
||||||
branch := os.Getenv("BUILDKITE_BRANCH")
|
branch := os.Getenv("BUILDKITE_BRANCH")
|
||||||
|
|
||||||
if strings.HasPrefix(branch, "renovate/") {
|
if strings.HasPrefix(branch, "renovate/") {
|
||||||
|
buildFrontend(branch)
|
||||||
log.Info("Skip building Authelia for deps...")
|
log.Info("Skip building Authelia for deps...")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
@ -161,7 +164,7 @@ func Build(cobraCmd *cobra.Command, args []string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug("Building Authelia frontend...")
|
log.Debug("Building Authelia frontend...")
|
||||||
buildFrontend()
|
buildFrontend(branch)
|
||||||
|
|
||||||
log.Debug("Building swagger-ui frontend...")
|
log.Debug("Building swagger-ui frontend...")
|
||||||
buildSwagger()
|
buildSwagger()
|
||||||
|
|
Loading…
Reference in New Issue