Skip to content

jakkaj/yamlw_vststask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yamlw_vststask

A VSTS task for yamlw

Extension on the Visual Studio Marketplace.

YouTube video demonstration.

See the yamlw GitHub repo for more info on the yamlw NPM package.

This extension allows you to easily create or update yaml files during build and release.

Take build arguments and other interesting things and write them to structured yaml.

Pass in arguments as name/value pairs separated by a comma.

Given this file:

replicaCount: 1
image:
  repository: jakkaj/sampletrainer
  tag: dev
  pullPolicy: IfNotPresent
outputs:
  modelfolder: /mnt/azure/
  mountpath: /mnt/azure
build:
  number: 1

Set the arguments to build.number=23,something.else='my value' for the following result:

replicaCount: 1
image:
  repository: jakkaj/sampletrainer
  tag: dev
  pullPolicy: IfNotPresent
outputs:
  modelfolder: /mnt/azure/
  mountpath: /mnt/azure
build:
  number: 23
something:
  else: my value

Note that nested properties are created.

Deployment to VSTS

You'll need node.js installed to deploy this to your VSTS instance.

npm install -g tfx-cli

Login with tfx login. Pass in base dir of your VSTS instance/DefaultCollection (or what ever collection!)

You'll need a VSTS Personal Access Token too.

Deploy to vsts with tfx build tasks upload (pass in ./YamlWriter or . if in that dir already)

Publishing

Edit the version in vss-extension.json.

tfx extension create

About

A VSTS task for yamlw

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors