This topic tells you how to add a stage to a SupplyChain
resource.
CautionTanzu Supply Chain is currently in beta and is not intended for production use. It is intended only for evaluation purposes for the next generation Supply Chain. For the current Supply Chain solution, see the Supply Chain Choreographer documentation.
You must have:
SupplyChain
resource. For how to build one, see Build your first SupplyChain.This section describes how to add a stage to an existing SupplyChain
resource if the SupplyChain
resource has not been deployed to clusters used by developers.
ImportantIf the
SupplyChain
resource is in use by developers with existing running workloads, do not add a stage. Instead, create a newSupplyChain
resource with an updated version in the name, such asMavenAppBuildv2
.Creating a new
SupplyChain
resource with every breaking Workload API change provides developers with a migration path and a chance to test their app on the newSupplyChain
resource.
To add a stage:
Add a component to the SupplyChain
resource by adding the following YAML snippet between source-git-provider
and the buildpack-build
stage in your SupplyChain
resource:
- componentRef:
name: COMPONENT-NAME
name: unit-testing
Where COMPONENT-NAME
is the component name. For example, maven-unit-tester-1.0.0
.
Update the SupplyChain
resource by running:
NAMESPACE=mysupplychains make install