Skip to main content
Version: Next 🚧

Deploy from CI/CD

Introduction​

A pipeline deploys to Epinio the same way you do: it runs the Epinio CLI against your Epinio API. Epinio maintains a ready-made integration for GitHub and for GitLab. Each one installs the CLI, logs in, and pushes your application, and each carries its own setup instructions and examples.

PlatformIntegrationUse it as
GitHub Actionsepinio/setup-epinio-actionA step that installs and logs in the CLI; your workflow then runs epinio push
GitLab CI/CDepinio/epinio-gitlab-ciA CI/CD component you include:, or a plain job to paste into .gitlab-ci.yml

Credentials​

A pipeline authenticates with either a username and password or an access token, kept in the pipeline's secrets or CI/CD variables. Each integration documents the names of the variables it reads.

Use an account made for the pipeline rather than a personal one, and give it access only to the namespaces it deploys to. See Authorization for how an operator adds a user and assigns roles.

Other CI systems​

Any CI system that can run a shell step can deploy without an integration. Install the Epinio CLI, set its connection and credentials as environment variables, and run epinio push. The CLI needs no settings file and no login step in this mode:

export EPINIO_API=https://epinio.example.com
export EPINIO_USER=ci-deployer
export EPINIO_PASSWORD="$EPINIO_PASSWORD_SECRET"
export EPINIO_NAMESPACE=workspace

epinio push --name my-app --path .

See Authentication without a settings file for every variable the CLI reads, including EPINIO_API_TOKEN for token authentication.