Skip to content

Commit

Permalink
Feature: Update the CI to use SDK for version bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
chumaknadya committed Nov 13, 2019
1 parent 3a797ec commit 809c9dc
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,14 @@ steps:
- push

- name: Bump version
image: golang:1.13
image: quay.io/openware/sdk-tools:0.0.2
environment:
BRANCH_NAME: ${DRONE_BRANCH}
REPO_NAME: ${DRONE_REPO}
GITHUB_API_KEY:
from_secret: kite_bot_key
GO111MODULE: off
commands:
- git config --global user.name "Kite Bot"
- git config --global user.email "[email protected]"
- go get github.com/Clever/gitsem
- gitsem -m "[ci skip] Bump version to %s" patch
- git remote add authenticated-origin https://kite-bot:[email protected]/${DRONE_REPO}
- git push --tags authenticated-origin HEAD:$DRONE_BRANCH
- cp VERSION .tags
- BUNDLE_GEMFILE=/sdk/Gemfile bundle exec rake --rakefile=/sdk/Rakefile release:push
when:
event:
- push
Expand Down Expand Up @@ -62,3 +57,6 @@ steps:
- push
branch:
- master

image_pull_secrets:
- dockerconfigjson

0 comments on commit 809c9dc

Please sign in to comment.