Skip to content

Inbuilt Pipeline Templates

When configuring a pipeline, you can use built-in pipeline templates provided by Choreo. These templates include pre-defined functionality that can simplify and accelerate pipeline creation.

Choreo’s pipeline specification supports referencing these templates using the following syntax:

steps:
  - name: <step name>
    template: choreo/<template name>
Check complete list of Choreo built-in templates

Publish to Choreo Marketplace

At the end of all the resource provisioning steps in the automation pipeline, to publish metadata and credentials of provisioned resources to the Choreo marketplace, use inbuilt pipeline template choreo/marketplace-publish@v1. This template accepts an input argument called resource which needs to have a specific structure. Following is an example used to publish details of a provisioned MSSQL database.

steps:
  - name: publish-marketplace
    template: choreo/marketplace-publish@v1
    arguments:
      parameters:
        - name: resource
          yamlObject:
            name: "dev-mssql-db"
            version: 1.0.0
            category: Database
            description: MSSQL Database
            tags:
              - dev
            properties:
              databaseName: "{{steps.run-terraform.outputs.parameters.sql_database_name}}"
              sqlServerFQDN: "{{steps.run-terraform.outputs.parameters.sql_server_fqdn}}"
            connectionCredentials:
              - environments:
                  - Development
                parameters:
                  - key: ConnectionString
                    value: "{{steps.run-terraform.outputs.parameters.connection_string}}"
                    isSecret: false
                  - key: DBUsername
                    value: "{{steps.run-terraform.outputs.parameters.db_user_username}}"
                    isSecret: true
                  - key: DBUserPassword
                    value: "{{steps.run-terraform.outputs.parameters.db_user_password}}"
                    isSecret: true