bust/ci/main.go
kjuulh 6fe0d0677c
Some checks failed
continuous-integration/drone/push Build is failing
feat: change to harbor.front.kjuulh.io
2023-05-15 21:57:27 +02:00

44 lines
798 B
Go

package main
import (
"context"
"log"
"git.front.kjuulh.io/kjuulh/bust/pkg/builder"
"git.front.kjuulh.io/kjuulh/bust/pkg/cli"
"git.front.kjuulh.io/kjuulh/bust/pkg/pipelines"
)
func main() {
log.Printf("building bust")
err := cli.NewCustomGoBuild("golangbin", func(ctx context.Context) error {
builder, err := builder.New(ctx)
if err != nil {
return err
}
err = pipelines.
New(builder).
WithGolangBin(&pipelines.GolangBinOpts{
DockerImageOpt: &pipelines.DockerImageOpt{
ImageName: "bust",
},
BuildPath: "main.go",
BinName: "bust",
BaseImage: "harbor.front.kjuulh.io/docker-proxy/library/docker:dind",
CGOEnabled: true,
}).
Execute(ctx)
if err != nil {
return err
}
return nil
})
if err != nil {
log.Fatal(err)
}
}