harness-drone/.github
2021-08-17 11:10:04 +01:00
..
code_of_conduct.md wip enable CE 2019-02-20 10:34:26 -08:00
contributing.md copy over standard contributing.md file [CI SKIP] 2021-02-04 14:43:51 -05:00
issue_template.md Send users to Discourse for issues [CI SKIP] 2020-02-26 09:37:46 -08:00
pull_request_template.md Update pull_request_template.md 2021-07-20 10:52:33 -05:00
readme.md release 2.0.5 2021-08-17 11:10:04 +01:00
security.md update release destination 2019-06-24 08:25:33 -07:00

Drone is a Continuous Delivery system built on container technology. Drone uses a simple YAML configuration file, a superset of docker-compose, to define and execute Pipelines inside Docker containers.


Sample Pipeline Configuration:

name: default

kind: pipeline
type: docker

steps:
- name: backend
  image: golang
  commands:
    - go get
    - go build
    - go test

- name: frontend
  image: node:6
  commands:
    - npm install
    - npm test

- name: publish
  image: plugins/docker
  settings:
    repo: octocat/hello-world
    tags: [ 1, 1.1, latest ]
    registry: index.docker.io

- name: notify
  image: plugins/slack
  settings:
    channel: developers
    username: drone

Documentation and Other Links:

Please note the official Docker images run the Drone Enterprise distribution. If you would like to run the Community Edition you can build from source by following the instructions in BUILDING_OSS.

Release procedure

Run the changelog generator.

docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone -p drone -t <secret github token>

You can generate a token by logging into your GitHub account and going to Settings -> Personal access tokens.

Next we tag the PR's with the fixes or enhancements labels. If the PR does not fufil the requirements, do not add a label.

Run the changelog generator again with the future version according to semver.

docker run -it --rm -v "$(pwd)":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone -p drone -t <secret token> --future-release v1.0.0

Create your pull request for the release. Get it merged then tag the release.