average-dream-51210
06/02/2019, 1:30 AMbig-piano-35669
average-dream-51210
06/02/2019, 2:11 AMbig-piano-35669
average-dream-51210
06/02/2019, 2:33 AMbrave-salesmen-42327
06/03/2019, 5:38 PMconst BRANCH = execSync(`git rev-parse --abbrev-ref HEAD`).toString('utf8').trim()
const STACK = `exampleOrg/${BRANCH}`
var tasks = {
update: () => {
sh(`pulumi update -y --skip-preview --stack ${STACK}`)
tasks.test()
}
,test: () => {
sh(`npm ${options.debug? 'run test-debug':'test'}`)
}
}
You can even get the branch from inside your index.ts script and change up your stack inputs from the same stack, based on what branch you are on.average-dream-51210
06/03/2019, 8:26 PM