»build Stanza

Placementapp -> build

The build stanza describes how an application is built. Waypoint converts application source code into an artifact. Waypoint can store the image locally, or push it to a remote registry. Read more about the build phase of the application lifecycle here.

Exactly one build stanza is required within an app stanza.

app "frontend" {
  build {
    use "docker" {}

    registry {
      # ...
    }

    hook {
      # ...
    }
  }

  # ...
}

»build Parameters

»Required

  • use (use) - The plugin to use for building the application. For example, the "docker" plugin will use docker build to build your application.

»Optional

  • hook (hook: nil) - Hooks to execute before and/or after the build.

  • registry (registry: nil) - A registry to push the built artifact to. If this isn't specified, the artifact isn't pushed to any registry and it is assumed that the deployment can access the build result.