-
Notifications
You must be signed in to change notification settings - Fork 0
/
instellar.yml
85 lines (76 loc) · 1.57 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
dependencies:
build:
- elixir
- npm
- cargo
runtime:
- bash
- curl
- s6
- jq
- ca-certificates
- opsmaru-site-openrc
trace: true
stack: alpine/3.19
run:
commands:
- binary: opsmaru
call: remote
name: console
- binary: tail
call: -f -n 100 /var/log/opsmaru-site/current
name: logs
path: /usr/bin
name: opsmaru-site
services:
- binary: opsmaru
name: web
start:
call: start
hook:
post-deinstall: |
rc-service opsmaru-site stop
rc-update del opsmaru-site
post-install: |
rc-update add opsmaru-site
post-upgrade: |
rc-service opsmaru-site start
pre-upgrade: |
rc-service opsmaru-site stop
build:
command: |
export MIX_ENV=prod
mix local.hex --force
mix local.rebar --force
mix do deps.get --only prod
npm --prefix ./assets install ./assets
# Comment out mix assets.deploy for non phoenix apps
mix assets.deploy
mix release
destinations:
- _build/prod/rel/opsmaru/*
kits:
- description: Web service
main: true
name: web
ports:
- main: true
name: web
target: 3000
variables:
- default_value: '3000'
key: PORT
- default_value: 'true'
key: PHX_SERVER
- key: SANITY_DATASET
required: true
- key: SANITY_PROJECT_ID
required: true
- key: SANITY_TOKEN
required: true
- key: STRIPE_SECRET
required: true
- driver: generic/secret
driver_options:
length: 128
key: SECRET_KEY_BASE