Deploying a specific commit instead of a branch/tag

Hi, I am curious if it is possible to deploy a dev environment based on a commit SHA, without having to create a branch/tag for it?

Hi @Mark90 !

You should be able to set the commit SHA as your current working tree in your local filesystem, and then run the okteto deploy command, as follows:

git checkout <Commit SHA>
okteto deploy

Would that accomplish your use-case objective?

Thanks!

Hi Jona,

Locally that would work, but we’re using okteto pipeline deploy to deploy several (27) different repositories. It has the --branch option but it doesn’t seem to accept commit SHA. If this option doesn’t exist, perhaps I should create a feature request?

Thanks, Mark