Skip to content

Gitlab CI runner image that rsyncs to remote server (Doxygen, etc.)

License

Notifications You must be signed in to change notification settings

rizerzero/gitlab-ci-rsync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

GitLab CI runner that rsyncs to remote server

This GitLab CI runner image allows to sync a GitLab project to a remote location (running ssh server) via rsync (useful for Doxygen, etc.)

How to use

Create .gitlab-ci.yml:

image: alpine

before_script:
- apk update
- apk add doxygen
- apk add ttf-freefont graphviz
- apk add 
- apk add openssh-client

stages:
  - deploy

deploy to production:
  stage: deploy
  environment: production
  only:
    - master
  script: rsync-script.sh dokku@dokku.me:myapp my_local/path

Go to GitLab > Project > Settings > CI/CD Pipelines > Secret Variables, and add a variable SSH_PRIVATE_KEY:

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

About

Gitlab CI runner image that rsyncs to remote server (Doxygen, etc.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%