diff --git a/drone/README.md b/drone/README.md index 0141512..952eed3 100644 --- a/drone/README.md +++ b/drone/README.md @@ -21,22 +21,28 @@ Client Secret: ... (generated by github) ```yaml drone: - image: drone/drone:0.4 + image: drone/drone ports: - "8000:8000" volumes: - ./drone:/var/lib/drone - /var/run/docker.sock:/var/run/docker.sock - env_file: ./dronerc + environment: + - REMOTE_DRIVER=github + - REMOTE_CONFIG=https://github.com?client_id=...&client_secret=... +# - REMOTE_DRIVER=gogs +# - REMOTE_CONFIG=https://git.easypi.info/?open=false + - DEBUG=false + restart: always + +wall: + image: drone/drone-wall + ports: + - "8080:80" restart: always ``` -## dronerc - -```bash -REMOTE_DRIVER=github -REMOTE_CONFIG=https://github.com?client_id=...&client_secret=... -``` +> Drone will register gogs webhooks automatically, you don't need to do it manually. ## nginx/sites-enabled/drone @@ -59,22 +65,29 @@ server { chunked_transfer_encoding off; } } + +server { + listen 80; + server_name wall.easypi.info; + location / { + proxy_pass http://127.0.0.1:8080; + } +} ``` ## up and running -``` +```bash # server $ cd ~/fig/drone/ $ docker-compose up -d $ docker-compose logs -# client -$ firefox http://drone.easypi.info/settings/profile -$ curl http://downloads.drone.io/drone-cli/drone_darwin_amd64.tar.gz | tar zx -C /usr/local/bin/ -$ export DRONE_SERVER=http://drone.easypi.info/ -$ export DRONE_TOKEN=... -$ drone help +# client (login with remote driver credential) +$ firefox http://drone.easypi.info/ + +# dashboard +$ firefox http://wall.easypi.info/ ``` [1]: http://readme.drone.io/usage/overview/ diff --git a/drone/docker-compose.yml b/drone/docker-compose.yml index 6d3ca38..1e99084 100644 --- a/drone/docker-compose.yml +++ b/drone/docker-compose.yml @@ -8,5 +8,11 @@ drone: environment: - REMOTE_DRIVER=gogs - REMOTE_CONFIG=https://git.easypi.info/?open=false - - DEBUG=true + - DEBUG=false + restart: always + +wall: + image: drone/drone-wall + ports: + - "8080:80" restart: always