Screwdriver example for validating, publishing, and tagging(promoting) multiple templates
In this example, we use the screwdriver-template-main npm package to assist with template validation, publishing, and tagging.
This example will publish two templates:
golang/initnodejs/test
It will also tag the latest versions with the latest and/or stable tags, respectively. The golang/init template is located at the default template path sd-template.yaml, while the nodejs/test template is in a custom path templates/nodejs.yaml.
For the nodejs/test template, we run a remote test that has a simple nodejs app which will directly consume the nodejs/test template. If that test is successful, the promote_nodejs_template will run using remote triggers and tag the latest nodejs/test template with the stable tag.
See the templates documentation for more information.