dokku / gitlab-ci

A collection of gitlab-ci examples
35 stars 12 forks source link
ci-cd continuous-deployment deployment docker dokku gitlab-ci

gitlab-ci

A collection of gitlab-ci examples

Requirements

Please note that these workflows are compatible with dokku >= 0.11.6.

Usage

All examples require a SSH_PRIVATE_KEY environment variable set for the Gitlab CI pipeline. This may be set via a "secret variable". See this doc for instructions on creating a new ssh key. Be careful not to overwrite existing keys on the generating machine by using a new name.

Adding a secret variable

Browse to the repository in question and visit the following path: the Gitlab project > Settings > CI/CD.

Click on Secret variables > Expand and fill in the blanks.

Environment Variables

Examples

All examples below are functionally complete and can be copy-pasted into a .gitlab-ci.yml file, with some minor caveats:

For simplicity, each example is standalone, but may be combined as necessary to create the desired effect.