-
Notifications
You must be signed in to change notification settings - Fork 0
/
instellar.yml
63 lines (54 loc) · 1.05 KB
/
instellar.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
dependencies:
build:
- elixir
- erlang-crypto
- erlang-syntax-tools
- erlang-hipe
- erlang-parsetools
- erlang-runtime-tools
- erlang-observer
- erlang-tools
- erlang-xmerl
- erlang-eunit
- libsodium-dev
- nodejs
- npm
runtime:
- bash
- curl
- jq
- ca-certificates
- s6
- helipad-openrc
build:
destination: '_build/prod/rel/helipad'
command: |
export MIX_ENV=prod
mix local.hex --force
mix local.rebar --force
mix do deps.get --only prod
npm --prefix ./assets install ./assets
npm run deploy --prefix ./assets
mix phx.digest
mix release
run:
name: helipad
start:
call: 'start'
stop:
call: 'stop'
command:
call: 'eval'
variations:
migrate: Helipad.Release.Tasks.migrate
hook:
post-install: |
rc-update add helipad
pre-upgrade: |
rc-service helipad stop
post-upgrade: |
rc-service helipad migrate
rc-service helipad start
post-deinstall: |
rc-service helipad stop
rc-update del helipad