-
Notifications
You must be signed in to change notification settings - Fork 58
/
.drone.yml
87 lines (80 loc) · 2.01 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
---
kind: pipeline
name: default
steps:
- name: Go test
image: golang:1.18
environment:
GO111MODULE: on
commands:
- go mod download
- go test ./... --cover --count=100
- name: "Bump & Tag"
image: quay.io/openware/sdk-citools:2.6.7
environment:
BRANCH_NAME: ${DRONE_BRANCH}
REPO_NAME: openware/rango
GITHUB_API_KEY:
from_secret: kite_bot_key
commands:
- BUNDLE_GEMFILE=/sdk/Gemfile bundle exec rake --rakefile=/sdk/Rakefile ci:prebuild
when:
branch:
- master
- "*-stable"
- name: Build container
image: plugins/docker
settings:
username:
from_secret: quay_username
password:
from_secret: quay_password
repo: quay.io/openware/rango
registry: quay.io
when:
branch:
- master
- "*-stable"
- name: "Update global OpenDAX version"
image: quay.io/openware/goci:0.0.11
environment:
GIT_TOKEN:
from_secret: gh_api_token
GIT_USER:
from_secret: gh_api_user
commands:
- export GIT_URL=https://${GIT_USER}:${GIT_TOKEN}@github.com/openware/versions-aurora.git
- /app/goci versions
when:
branch:
- "*-stable"
- master
- name: "Notify"
image: quay.io/openware/sdk-citools:2.6.7
environment:
BOT_USERNAME: kite-bot
BOT_NAME: Kite Bot
BOT_EMAIL: [email protected]
BRANCH_NAME: ${DRONE_BRANCH}
REPO_NAME: ${DRONE_REPO}
SDK_BRANCH: ${DRONE_BRANCH}
SLACK_CHANNEL: peatio
SLACK_TOKEN:
from_secret: slack_token
GITHUB_API_KEY:
from_secret: kite_bot_key
TELEGRAM_BOT_TOKEN:
from_secret: telegram_bot_token
TELEGRAM_CHAT_ID:
from_secret: telegram_chat_id
commands:
- BUNDLE_GEMFILE=/sdk/Gemfile bundle exec rake --rakefile=/sdk/Rakefile ci:postbuild[/drone/src]
when:
branch:
- master
- "*-stable"
trigger:
event:
- push
image_pull_secrets:
- dockerconfigjson