-
Notifications
You must be signed in to change notification settings - Fork 10
/
.drone.yml
44 lines (39 loc) · 1.24 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
---
kind: pipeline
name: "New version"
concurrency:
limit: 2
steps:
- name: "Bump & Tag"
image: node:10.11
environment:
GITHUB_API_KEY:
from_secret: kite_bot_key
commands:
- set -x
- 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
- yarn config set version-git-message "[ci Skip] Bump %s"
- yarn config set version-tag-prefix ""
- git_msg=$(git log -n1 --pretty=oneline)
- patch_level=$( (echo $git_msg | grep -q MAJOR-BUMP && echo major) || (echo $git_msg | grep -q MINOR-BUMP && echo minor) || echo patch)
- yarn version --"$patch_level" -y
- git push authenticated-origin HEAD:master
- git push authenticated-origin --tags
- git describe --tags $(git rev-list --tags --max-count=1) > .tags
- name: "Build container"
image: plugins/docker
settings:
username:
from_secret: quay_username
password:
from_secret: quay_password
repo: quay.io/openware/nodelogic
registry: quay.io
trigger:
branch:
- master
event:
- push