RegistryAdding a stack yaml file

Registry

Adding a stack yaml file

To include multiple stack versions in a particular stack, place the stack.yaml file under the root of the stack folder.

stack.yaml schema

Name Type Description
namestringThe stack name.
displayNamestringThe display name of a stack.
descriptionstringThe description of a stack.
versionsversion[]The information of each stack version.
iconstringA stack icon.

version spec

Name Type Description
versionstringThe stack version.
defaultbooleanThe default stack version.

stack.yaml sample

stack.yaml
name: go
description: Stack with the latest Go version
displayName: Go Runtime
icon: https://raw.githubusercontent.com/devfile-samples/devfile-stack-icons/main/golang.svg
versions:
  - version: 1.1.0
    default: true # should have one and only one default version
  - version: 1.2.0