MCPcopy
hub / github.com/livekit/livekit / PublishDocker

Function PublishDocker

magefile.go:150–166  ·  view source on GitHub ↗

builds and publish snapshot docker image

()

Source from the content-addressed store, hash-verified

148
149// builds and publish snapshot docker image
150func PublishDocker() error {
151 // don't publish snapshot versions as latest or minor version
152 if !strings.Contains(version.Version, "SNAPSHOT") {
153 return errors.New("Cannot publish non-snapshot versions")
154 }
155
156 versionImg := fmt.Sprintf("%s:v%s", imageName, version.Version)
157 cmd := exec.Command("docker", "buildx", "build",
158 "--push", "--platform", "linux/amd64,linux/arm64",
159 "--tag", versionImg,
160 ".")
161 mageutil.ConnectStd(cmd)
162 if err := cmd.Run(); err != nil {
163 return err
164 }
165 return nil
166}
167
168// run unit tests, skipping integration
169func Test() error {

Callers

nothing calls this directly

Calls 1

RunMethod · 0.45

Tested by

no test coverage detected