Skip to content

coopengo/coog-drone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drone

Install drone server

  1. First install docker and docker-compose on your server.
  2. Move this drone directory anywhere on your server.
  3. Build the image needed to run tests:
docker build -t coog-test/base-tests docker
  1. Make your application recognized by Github so you can have Github tokens.
  2. Then export the following variables (put them into the /.bashrc file might be wise enough):
export TEST_DRONE_GITHUB_CLIENT=SDFGHJK2345678
export TEST_DRONE_GITHUB_SECRET=EDFGHJ456789HGVJK
export TEST_DRONE_SECRET=anyStringYouWant
  1. Set DRONE_HOST in the docker-compose.yml file to your server adress.
  2. Run cd path/to/drone/server && docker-compose up -d
  3. All clear! Now you can do the Configuration part.

Configuration

You will need to configure global secrets for your server to be able to access redmine and github.

  1. (Optional) Enter for the REDMINE_TOKEN and GITHUB_TOKEN with the following names:
export TEST_REDMINE_TOKEN=DFGHKJLJLHGFDY
export TEST_GITHUB_TOKEN=RTDYFUIYUOIOUTIR567
  1. Go to the url of your drone server and log in.
  2. Go to the account part and switch on the repository you want to enable CI on.
  3. Go to the dashboard of that directory and click on Secrets.
  4. Add the following secrets with the according values:
  • GITHUB_TOKEN
  • REDMINE_TOKEN
  1. All clear!