All posts

Deploy From Anywhere

Potions now deploys from GitLab, Gitea, Forgejo, Codeberg or any other git server.

A
Alekx
· 2 min read

Why limit yourself? Potions now deploys from GitLab (cloud or self-managed), Gitea, Forgejo, Codeberg or any other git server, not just GitHub.

How it works

The Add app dialog's Git host menu: GitHub, GitLab, Gitea, Forgejo or Codeberg, and Another git host

  1. On your server's Apps page, click Add app.
  2. Pick your git host: GitLab, Gitea, Forgejo or Codeberg, or Another git host.
  3. Paste the repository's SSH URL, like git@gitea.example.com:team/shop.git.
  4. Add the read-only deploy key Potions shows to your repository, then click Test connection.

Then click Deploy. Potions clones your code on a build server, builds a release and ships it like any other app. For a public repository, paste its https:// URL instead and skip the key.

Deploy on every push

Turn on auto-deploy in the app's settings and add the webhook Potions shows to your repository. Gitea, Forgejo and GitLab send each push straight to Potions, and pushes to other branches are ignored.

For any other host, or to deploy only once your tests pass, Potions gives you a deploy hook URL to call from CI:

curl -fsS -X POST "$POTIONS_DEPLOY_HOOK&sha=$CI_COMMIT_SHA"

Behind a firewall?

Builds clone your code from a Potions build server, so your git server needs to be reachable from the internet. If it's behind a firewall, allow the addresses listed at potions.io/ips.

Get started

The GitLab, Gitea & Forgejo docs cover each host's settings, webhooks and deploying from CI.

Happy deploying!

Deploy Elixir to servers you own.

Potions gives you push-to-deploy, zero-downtime releases and managed servers, with the control of plain infrastructure.

Start 14-day free trial