Deploy a Stack revision via GitHub

Last updated 3 months ago

Koyeb provides fully automated continuous deployment directly connected to your Git repositories. You simply add a .koyeb.yaml file to your repository and every time you push to your GitHub repository, and then we take care of the deployment for all of your functions and containers referenced in the Stack YAML configuration.

This provides native versioning and rollback capabilities for all your production.

From the web interface

Create a Stack connected to a GitHub Repository

Creating a stack takes only three clicks:

  1. Click the Create button at the top right of the control panel and select Stack.
  2. On the "Choose how to manage your Stack," select GitHub Repository.
  3. You will be redirected to GitHub to install the Koyeb Application. The Koyeb Application is connected to the repository you will select in the next step to automatically receive webhooks each time you push your commits.
  4. Select the repository you want your Stack to be connected to.
  5. Return to Stacks in your Koyeb Account.
  6. In the "Choose a name for your Stack" field, enter hello-github. Then click the Create Stack button.

And that's it. Now each new commit will deploy a new Stack revision!

Commit to deploy your first revision

  1. Add a file called .koyeb.yaml at the root of your repository with the classic hello-koyeb function:
1functions:
2  - name: hello-koyeb # The function name
3    image: koyeb/cowsay # The Docker image to use
4
  1. git add your file, git commit -m "Add koyeb.yaml config" and git push your change.

Et voilà, Koyeb will deploy your new revision!


Ready to get started?

Get in touch or create an account and deploy your serverless stack in minutes.

footer-frame