Skip to content

Gitlab CI runner image that pushes to a remote Git repo (Dokku, Heroku, Deis, etc.)

Notifications You must be signed in to change notification settings

wtsi-hgi/gitlab-ci-git-push

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gitlab CI runner that pushes to git

This Gitlab CI runner image allows to deploy a Gitlab project to a remote Git repo (useful for Dokku, Heroku, Deis, etc.)

How to use

Create .gitlab-ci.yml:

image: ilyasemenov/gitlab-ci-git-push

stages:
  - deploy

deploy to production:
  stage: deploy
  environment: production
  only:
    - master
  script: git-push dokku@dokku.me:myapp

Go to Gitlab > Project > Settings > Variables, and create a variable SSH_PRIVATE_KEY:

-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----

About

Gitlab CI runner image that pushes to a remote Git repo (Dokku, Heroku, Deis, etc.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%