Marea.Plugins.Build (marea v0.0.1-rc.1)

Copy Markdown View Source

Build subcommands: clean, local, deps, release.

Owns the build parent subcommand. Container-image and chart build steps live in their own plugins (Marea.Plugins.Docker contributes build docker, build show-dockerfile, build show-docker-versions; Marea.Plugins.Helm contributes build helm) and extend the same parent through Marea.Config.Args.add_subcommands/2.

Implements the date+git release version via Marea.Plugins.Base.marea_release_vsn/0. See the Build Plugin guide.

Summary

Functions

Runs mix release for the active deploy/release, prints a BUILD <target> table, updates the git working tree, and stashes target + git_vsn into config.values.

Functions

build(config, target)

@spec build(Marea.Config.t(), String.t()) :: Marea.Config.t()

Runs mix release for the active deploy/release, prints a BUILD <target> table, updates the git working tree, and stashes target + git_vsn into config.values.

Public so plugins that compose multi-step builds (e.g. Marea.Plugins.Docker for build docker, Marea.Plugins.Helm for build helm) can reuse the release step.