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