Skip to content

Instantly share code, notes, and snippets.

@marsyang1
Created December 9, 2018 02:48
Show Gist options
  • Save marsyang1/bbca5cc59cd7e851cfdf1999508a8fcf to your computer and use it in GitHub Desktop.
Save marsyang1/bbca5cc59cd7e851cfdf1999508a8fcf to your computer and use it in GitHub Desktop.
drone ci test...
# reference : https://tech.labs.oliverwyman.com/blog/2018/05/08/setting-up-drone-io-ci/
# reference : https://medium.com/asiayo-engineering/%E7%94%A8-drone-%E6%89%93%E9%80%A0-ci-cd-flow-36b9d14c7620
version: '2'
services:
drone-server:
image: drone/drone:0.8
ports:
- 80:8000
- 443:443
- 9000
volumes:
- /var/lib/drone:/var/lib/drone/
restart: always
environment:
- DRONE_OPEN=false
# auth account in BitBucket
- DRONE_USER_CREATE=username:your_bitbucket_account,admin:true
- DRONE_BITBUCKET=true
- DRONE_BITBUCKET_CLIENT= from bitBucket key
- DRONE_BITBUCKET_SECRET= from bitBucket secret
- DRONE_HOST=http://drone.yourdomain.abc
- DRONE_SECRET= drone_secret
drone-agent:
image: drone/agent:0.8
command: agent
restart: always
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=drone-server:9000
- DRONE_SECRET= drone_secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment