sparse-intern-71089
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 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by