forked from openware/opendax
-
Notifications
You must be signed in to change notification settings - Fork 38
/
.drone.yml
33 lines (32 loc) · 844 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
kind: pipeline
name: default
steps:
- name: Run rspec
image: ruby:2.6.1
commands:
- bundle
- rspec
when:
event:
- pull_request
- name: Bump and tag
image: ruby:2.6.1
environment:
BOT_USERNAME: kite-bot
BOT_NAME: Kite Bot
BOT_EMAIL: [email protected]
GITHUB_API_KEY:
from_secret: kite_bot_key
commands:
- gem install bump
- git config --global user.name " Kite Bot"
- git config --global user.email "[email protected]"
- git remote add authenticated-origin https://kite-bot:[email protected]/${DRONE_REPO}
- git fetch authenticated-origin
- bump patch --commit-message 'Bump [ci skip]'
- git tag $(cat VERSION)
- git push authenticated-origin master
- git push --tags authenticated-origin
when:
event: [push]
branch: [master]