-
Notifications
You must be signed in to change notification settings - Fork 4
/
.drone.yml
55 lines (49 loc) · 1.16 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
45
46
47
48
49
50
51
52
53
54
55
---
kind: pipeline
name: default
steps:
- name: Run rspec
image: ruby:2.6.5
commands:
- gem update bundler
- bundle --jobs $(nproc)
- bundle exec rspec
- name: Bump and tag
image: quay.io/openware/sdk-tools:1.0.0-1288533
environment:
BOT_NAME: Kite
BOT_EMAIL: [email protected]
BOT_USERNAME: kite-bot
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 ci:prebuild
when:
branch:
- master
trigger:
event:
- push
---
kind: pipeline
name: tag
steps:
- 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
- gem update bundler
- bundle --jobs $(nproc)
- bundle exec gem build compose-hook.gemspec
- bundle exec gem push compose-hook-$DRONE_TAG.gem
trigger:
event:
- tag