-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.drone.yml
64 lines (60 loc) · 1.52 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
kind: pipeline
name: default
steps:
- name: Go test
image: golang:1.13
environment:
GO111MODULE: on
commands:
- go mod download
- go test ./...
when:
event:
- push
- name: Bump version
image: golang:1.13
environment:
GITHUB_API_KEY:
from_secret: kite_bot_key
GO111MODULE: off
commands:
- git config --global user.name "Kite Bot"
- git config --global user.email "[email protected]"
- go get github.com/Clever/gitsem
- gitsem -m "[ci skip] Bump version to %s" patch
- git remote add authenticated-origin https://kite-bot:[email protected]/${DRONE_REPO}
- git push --tags authenticated-origin HEAD:$DRONE_BRANCH
- cp VERSION .tags
when:
event:
- push
branch:
- master
- name: Push image
image: plugins/docker
settings:
username:
from_secret: quay_username
password:
from_secret: quay_password
repo: quay.io/openware/postmaster
registry: quay.io
when:
event:
- push
branch:
- master
- name: "Redeploy on devkube"
image: rubykube/microkube:0.2.0
environment:
WEBHOOK_JWT_SECRET:
from_secret: devkube_webhook_secret
commands:
- export latest_image=quay.io/openware/postmaster:$(cat .tags)
- cd /home/app
- bundle exec rake payload:send[postmaster,$latest_image,http://www.devkube.com:1337]
when:
event:
- push
branch:
- master