-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Update the CI to use SDK for version bumps
- Loading branch information
1 parent
3a797ec
commit 809c9dc
Showing
1 changed file
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -62,3 +57,6 @@ steps: | |
- push | ||
branch: | ||
- master | ||
|
||
image_pull_secrets: | ||
- dockerconfigjson |