- First install
docker
anddocker-compose
on your server. - Move this
drone
directory anywhere on your server. - Build the image needed to run tests:
docker build -t coog-test/base-tests docker
- Make your application recognized by Github so you can have Github tokens.
- 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
- Set
DRONE_HOST
in thedocker-compose.yml
file to your server adress. - Run
cd path/to/drone/server && docker-compose up -d
- All clear! Now you can do the
Configuration part
.
You will need to configure global secrets for your server to be able to access redmine and github.
- (Optional) Enter for the REDMINE_TOKEN and GITHUB_TOKEN with the following names:
export TEST_REDMINE_TOKEN=DFGHKJLJLHGFDY
export TEST_GITHUB_TOKEN=RTDYFUIYUOIOUTIR567
- Go to the url of your drone server and log in.
- Go to the
account
part and switch on the repository you want to enable CI on. - Go to the
dashboard
of that directory and click onSecrets
. - Add the following secrets with the according values:
GITHUB_TOKEN
REDMINE_TOKEN
- All clear!