Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

choose what revision to deploy #282

Open
danielzzz opened this issue Jan 22, 2021 · 1 comment
Open

choose what revision to deploy #282

danielzzz opened this issue Jan 22, 2021 · 1 comment

Comments

@danielzzz
Copy link

hi,

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

thanks, cheers, dan

@brzez
Copy link

brzez commented Feb 21, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants