forked from Hentioe/policr-mini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
41 lines (37 loc) · 787 Bytes
/
.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
kind: pipeline
name: default
steps:
- name: app-compile
image: bluerain/elixir:1.10.4-slim
environment:
MIX_ENV: prod
commands:
- mix deps.get
- mix compile
- name: assets-build
image: node:buster
commands:
- npm install --prefix assets
- npm run deploy --prefix assets
- name: app-build
image: bluerain/elixir:1.10.4-slim
pull: always
environment:
MIX_ENV: prod
commands:
- mix phx.digest
- mix release
- name: image-push
image: plugins/docker
settings:
repo: bluerain/policr-mini
username: bluerain
password:
from_secret: docker_password
dockerfile: Dockerfile
tags: latest
when:
branch:
- master
event:
- push