-
Notifications
You must be signed in to change notification settings - Fork 38
/
.drone.yml
47 lines (43 loc) · 977 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
kind: pipeline
name: default
steps:
- name: Run rspec
image: ruby:2.6
commands:
- bundle
- bundle exec rspec
when:
event:
- pull_request
- name: Bump and Tag
image: quay.io/openware/sdk-tools:0.0.3
environment:
BRANCH_NAME: ${DRONE_BRANCH}
REPO_NAME: ${DRONE_REPO}
GITHUB_API_KEY:
from_secret: kite_bot_key
commands:
- BUNDLE_GEMFILE=/sdk/Gemfile bundle exec rake --rakefile=/sdk/Rakefile release:push
when:
event:
- push
branch:
- 1-1-stable
- name: Publish to RubyGems
image: ruby:2.6
environment:
RUBYGEMS_API_KEY:
from_secret: rubygems_api_key
commands:
- mkdir ~/.gem
- |
echo "---\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
- chmod 0600 ~/.gem/credentials
- bundle --jobs $(nproc)
- bundle exec gem build kite.gemspec
- bundle exec gem push kite-$DRONE_TAG.gem
when:
event:
- tag
image_pull_secrets:
- dockerconfigjson