mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-18 13:06:09 +05:00
feat: add github action for docker build on release (#132)
* feat: add github action Add github action for auto build slim torrverser alpine image with ffmpeg for linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le platforms * build: move creating dirs and files to entrypoint * fix: remove linux/386 and linux/ppc64le from docker building * fix: update readme with docker info
This commit is contained in:
16
gen_web.go
16
gen_web.go
@@ -14,14 +14,16 @@ import (
|
||||
|
||||
func main() {
|
||||
dir, _ := os.Getwd()
|
||||
os.Chdir("web")
|
||||
if run("yarn") != nil {
|
||||
os.Exit(1)
|
||||
if _, err := os.Stat("web/build/static"); os.IsNotExist(err) {
|
||||
os.Chdir("web")
|
||||
if run("yarn") != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
if run("yarn", "run", "build") != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
os.Chdir(dir)
|
||||
}
|
||||
if run("yarn", "run", "build") != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
os.Chdir(dir)
|
||||
|
||||
compileHtml := "web/build/"
|
||||
srcGo := "server/web/pages/"
|
||||
|
||||
Reference in New Issue
Block a user