Develop On Okteto Button

The Develop on Okteto button is a shortcut to deploy your development environments with a single click.

The button is designed to be used in Git README files, documentation sites, or pretty much anywherethat renders an html file. Use this instead of writing a never-ending list of manual steps on how to deploy your development environments.

Here's an example button that deploys the Movies App on Okteto Cloud.

Develop on Okteto

Requirements

The basic requirements for creating the button are that your application can be deployed in Okteto Cloud, and that the application's source code is hosted in a public Git repository.

The easiest way to validate this is to follow the instructions in the Deploy from Git document.

Adding the Develop on Okteto button

There are two ways of referencing the source code repository:

  • Resolve it implicitly. This is useful in Github README. files. If you don't specify the repository, Okteto will infer it using the referer header. This only works on public repositories hosted in https://github.com.
  • Using the repository and branch parameters. This is useful for buttons hosted outside of https://github.com, in blog posts or documentation.

Using an implicit repository

If you’re embedding the button in a public GitHub repository’s README file, Okteto will automatically infer the repository and the branch using the referer header when someone clicks on the button.

Here’s an example:

[![Develop on Okteto](https://okteto.com/develop-okteto.svg)](https://cloud.okteto.com/deploy)

And here’s the equivalent content as HTML if you prefer that:

<a href="https://cloud.okteto.com/deploy">
<img src="https://okteto.com/develop-okteto.svg" alt="Develop on Okteto">
</a>

A develop-okteto.png is also available.

Adding explicit parameters

Use the following Markdown snippet as a template, changing the repository and branch query parameters to match your repository. The branch query parameter is optional.

[![Develop on Okteto](https://okteto.com/develop-okteto.svg)](https://cloud.okteto.com/deploy?repository=https://github.com/okteto/movies&branch=master)

And here’s the equivalent content as HTML if you prefer that:

<a href="https://cloud.okteto.com/deploy?repository=https://github.com/okteto/movies&branch=master">
<img src="https://okteto.com/develop-okteto.svg" alt="Develop on Okteto">
</a>