shipit icon indicating copy to clipboard operation
shipit copied to clipboard

choose what revision to deploy

Open danielzzz opened this issue 4 years ago • 1 comments

hi,

is it possible to manually decide which revision to deploy? something like shipit dev deploy [sha] ?

thanks, cheers, dan

danielzzz avatar Jan 22 '21 16:01 danielzzz

I think you could just pass the branch via env.

shipitfile.js

{
...
branch: process.env.BRANCH,
// options needed to be able to checkout any commit
shallowClone: false,
workspace: tmpDir.name,
}

and then just run it like BRANCH=foobar npx shipit develop deploy you can also pass a commit # as the branch variable.

brzez avatar Feb 21 '21 21:02 brzez