-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.drone.yml
120 lines (111 loc) · 2.96 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
kind: pipeline
name: default
type: docker
steps:
- name: test
image: ruby:3.0
commands:
- apt-get update
- apt-get install -y libsecp256k1-dev
- gem update bundler
- bundle --jobs $(nproc)
- bundle exec rspec spec
volumes:
- name: gem-cache
path: /root/.gem
- name: bundler-cache
path: /usr/local/bundle
- name: tag-snapshot
image: quay.io/openware/sdk-citools:2.6.7
environment:
BOT_NAME: Kite
BOT_EMAIL: [email protected]
BOT_USERNAME: kite-bot
BRANCH_NAME: master
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"
- "integration/*"
- name: tag-stable
image: quay.io/openware/sdk-citools:2.6.5
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:
- "*-stable"
- name: git-push-gitolite
image: alpine/git
environment:
GITOLITE_KEY:
from_secret: gitolite_rsa_key_b64
commands:
- mkdir -p ~/.ssh
- echo $GITOLITE_KEY | base64 -d > ~/.ssh/id_rsa
- chmod 0600 ~/.ssh/id_rsa
- git remote add gitolite [email protected]:arke
- GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" git push -f gitolite HEAD:$DRONE_BRANCH
- name: docker-build
image: plugins/docker
settings:
username:
from_secret: quay_username
password:
from_secret: quay_password
repo: quay.io/openware/arke
registry: quay.io
when:
branch:
- "master"
- "*-stable"
- "integration/*"
- name: sdk-postbuild
image: quay.io/openware/sdk-citools:2.6.7
environment:
BOT_USERNAME: kite-bot
BOT_NAME: Kite Bot
BOT_EMAIL: [email protected]
REPO_NAME: ${DRONE_REPO}
BRANCH_NAME: ${DRONE_BRANCH}
SDK_BRANCH: ${DRONE_BRANCH}
TELEGRAM_BOT_TOKEN:
from_secret: telegram_bot_token
TELEGRAM_CHAT_ID:
from_secret: telegram_chat_id
SLACK_TOKEN:
from_secret: slack_token
SLACK_CHANNEL:
from_secret: slack_channel
GITHUB_API_KEY:
from_secret: kite_bot_key
commands:
- BUNDLE_GEMFILE=/sdk/Gemfile bundle exec rake --rakefile=/sdk/Rakefile ci:postbuild[/drone/src]
when:
branch:
- "master"
- "*-stable"
volumes:
- name: gem-cache
host:
path: /var/cache/drone/arke-gem-3
- name: bundler-cache
host:
path: /var/cache/drone/arke-bundler-3
trigger:
event:
- push
image_pull_secrets:
- dockerconfigjson