mirror of
https://github.com/dokku/dokku.git
synced 2025-12-23 23:39:30 +01:00
Without this, the config is invalid. Technically this is only necessary for `after_script`, but changed both for consistency.
603 B
603 B
GitLab CI
GitLab CI can be used to automatically deploy a Dokku application via the official the dokku/ci-docker-image. The simplest example is as follows:
---
image: dokku/ci-docker-image
stages:
- deploy
variables:
GIT_DEPTH: 0
deploy:
stage: deploy
only:
- master
variables:
GIT_REMOTE_URL: ssh://dokku@dokku.me:22/appname
script:
- dokku-deploy
after_script:
- dokku-unlock
For further usage documentation and other advanced examples, see Dokku's gitlab-ci repository.