Sign inSign up

lework/drone-semantic-release

By lework

Updated about 7 years ago

Drone semantic release plugin

Image
0

468

lework/drone-semantic-release repository overview

drone-semantic-release

docker hub docker hub

Drone plugin for making semantic releases based on https://github.com/semantic-release/semantic-release.

Usage

See commit message format to use it.

Add the following to the drone configuration

kind: pipeline
name: default

steps:
- name: semantic-release
  image: lework/semantic-release
  settings:
    git_user_name: bot # semantic release committer name (git config user.name)
    git_user_email: [email protected] # semantic release committer email (git config user.email)
    github_token: # semantic release token (for authentication)
      from_secret: token

or for BitBucket

    bitbucket_token: # semantic release token (for authentication)
      from_secret: token

or for GitLab

    gitlab_token: # semantic release token (for authentication)
      from_secret: token

or for any git server (including BitBucket cloud which does not support tokens):

    git_login: bot
    git_password:
      from_secret: password

docker run

git clone http://192.168.77.132/root/test.git
docker run --rm -e PLUGIN_GIT_USER_NAME=root -e [email protected] -e PLUGIN_GIT_LOGIN=root -e PLUGIN_GIT_PASSWORD=12345678 -v $(pwd)/test:/app -w /app lework/drone-semantic-release:latest

What it does

Runs on master branch only. Skips any actions below while on other branches.

  • automatically creates a semantic version number
  • attaches the version number as repo's git tag
  • If there is no .releaserc in the repository, the default file will be used. exposes the version number into the file .release-version
  • automatically creates, populates and pushes CHANGELOG.md to your master branch

License

MIT

Thanks entwico

Tag summary

Content type

Image

Digest

Size

53.1 MB

Last updated

about 7 years ago

docker pull lework/drone-semantic-release