I am trying to setup Drone CI 0.6 with Github. However I keep getting oauth errors. Perhaps someone can point out what I am doing wrong. I have tried both with & without DRONE_HOST
, but it always says there is a mismatch.
Error:
cannot authenticate user. redirect_uri_mismatch The redirect_uri MUST match the registered callback URL for this application. https://developer.github.com/v3/oauth/#redirect-uri-mismatch
docker-compose.yml :
version: '2'
services:
drone-server:
image: drone/drone:0.6
ports:
- 8822:8000
volumes:
- /var/lib/drone:/var/lib/drone/
restart: always
environment:
- DRONE_OPEN=true
- DRONE_HOST=http://ci.rallabs.com
- DRONE_GITHUB=true
- DRONE_GITHUB_CLIENT=myGithubClient
- DRONE_GITHUB_SECRET=myGithubSecret
- DRONE_SECRET=mySecret
drone-agent:
image: drone/drone:0.6
command: agent
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=ws://drone-server:8000/ws/broker
- DRONE_SECRET=mySecret
Github app details: