-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy path.drone.yml
62 lines (57 loc) · 1.41 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
kind: pipeline
name: MikroApp
steps:
- name: test
image: node:11
commands:
- yarn
- yarn build
- yarn test
- name: tag
image: node:11
environment:
GITHUB_API_KEY:
from_secret: rubykube_bot_creds
commands:
- git config --global user.name "kite-bot"
- git config --global user.email "support@rubykube.io"
- git remote add authenticated-origin https://kite-bot:$GITHUB_API_KEY@github.com/${DRONE_REPO}
- git fetch
- yarn config set version-git-message "[ci Skip] Bump %s"
- yarn config set version-tag-prefix ""
- yarn version --patch -y
- git push authenticated-origin master
- git push --tags authenticated-origin
- git describe --tags $(git rev-list --tags --max-count=1) > .tags
when:
branch:
- master
event:
- push
- name: push
image: plugins/docker
settings:
repo: rubykube/mikroapp
username:
from_secret: mikroapp_docker_username
password:
from_secret: mikroapp_docker_password
when:
branch:
- master
event:
- push
- name: deploy
image: rubykube/microkube:0.1.0
environment:
WEBHOOK_JWT_SECRET:
from_secret: microkube_webhook_secret
commands:
- export latest_image=rubykube/mikroapp:$(cat .tags)
- cd /home/app
- bundle exec rake payload:send[frontend,$latest_image,http://www.microkube.com:1337]
when:
branch:
- master
event:
- push