-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
72 lines (66 loc) · 1.51 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
kind: pipeline
name: default
steps:
- name: app-test
image: bluerain/zheckin:build
pull: true
environment:
ZHECKIN_ENV: test
ZHECKIN_ZHIHU_API_TOKEN:
from_secret: zhihu_api_token
ZHECKIN_BASE_SECRET_KEY: test123
commands:
- shards --production
- mkdir data
- crystal sam.cr -- db:setup
- crystal spec
- name: assets-build
image: node:stretch
commands:
- npm install --prefix ./assets
- npm run deploy --prefix ./assets
- name: app-build
image: bluerain/zheckin:build
pull: true
commands:
- shards build zheckin --release --progress --production
- crystal sam.cr -- digests:make
- crystal sam.cr -- digests:clean_undigested
- name: app-image-push
image: plugins/docker
settings:
repo: bluerain/zheckin
username: bluerain
password:
from_secret: docker_password
dockerfile: Dockerfile
tags: latest
when:
branch:
- master
event:
- push
- name: sam-build
image: bluerain/zheckin:build
pull: true
commands:
- shards build sam --release --progress --production
when:
branch:
- sam/update
event:
- push
- name: sam-image-push
image: plugins/docker
settings:
repo: bluerain/zheckin
username: bluerain
password:
from_secret: docker_password
dockerfile: sam.Dockerfile
tags: sam
when:
branch:
- sam/update
event:
- push