Setting up Drone CI with Gitlab
In previous article we made GitLab installation on Rancher. Now we need to create test project for the Drone CI.
Click create project.
Now go to admin area (Settings icon on the top bar). Select Applications -> New application. Create new app for drone with URI being http://drone-host/login, and roles are: api and read_user.
You should see something like this:
Go back to rancher and deploy drone. Expose port 80, set env variables and mount docker socket inside container
Go to the drone url, authorize GitLab. And you should now see your project.
Click activate, then Activate repository and save.
Now add .drone.yml file and the build will be running on commit. I used example drone yml from here.