Small Go library for building and pushing Minecraft Docker images.
go get github.com/hostfactor/minecrafter
package main
import (
"github.com/hostfactor/minecrafter"
"github.com/hostfactor/minecrafter/edition"
"os"
)
func main() {
builder := minecrafter.New([]string{os.Getenv("GITHUB_REGISTRY")})
err := builder.BuildEdition(new(edition.Java))
if err != nil {
panic(err.Error())
}
}
package main
import (
"github.com/hostfactor/minecrafter"
"github.com/hostfactor/minecrafter/edition"
"os"
)
func main() {
builder := minecrafter.New([]string{os.Getenv("GITHUB_REGISTRY")})
err := builder.BuildEdition(new(edition.BedrockEdition))
if err != nil {
panic(err.Error())
}
}
package main
import (
"github.com/hostfactor/minecrafter"
"github.com/hostfactor/minecrafter/edition"
"os"
)
func main() {
builder := minecrafter.New([]string{os.Getenv("GITHUB_REGISTRY")})
err := builder.BuildRelease(new(edition.Java), "1.18.1")
if err != nil {
panic(err.Error())
}
}
package main
import (
"github.com/hostfactor/minecrafter"
"github.com/hostfactor/minecrafter/edition"
"os"
)
func main() {
builder := minecrafter.New([]string{os.Getenv("GITHUB_REGISTRY")})
err := builder.BuildRelease(new(edition.BedrockEdition), "1.18.2")
if err != nil {
panic(err.Error())
}
}