-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
56 lines (53 loc) · 1.41 KB
/
buildspec.yml
File metadata and controls
56 lines (53 loc) · 1.41 KB
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
version: 0.2
env:
variables:
LANG: "en_US.UTF-8"
LANGUAGE: "en_US:UTF-8"
LC_ALL: "en_US.UTF-8"
LC_CTYPE: "en_US.UTF-8"
HOME: "/root"
ELIXIR_VERSION: "1.9.1"
MIX_ENV: "prod"
PORT: 4000
phases:
install:
runtime-versions:
java: corretto11
commands:
- echo Entered the install phase...
- apt-get update
- apt-get install -y git
- DEBIAN_FRONTEND=noninteractive apt-get install -y keyboard-configuration
- wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && dpkg -i erlang-solutions_2.0_all.deb
- apt-get update
- apt-get install -y esl-erlang
- apt-get install -y elixir
pre_build:
commands:
- echo Entered the pre_build phase...
- mix local.hex --force && mix local.rebar --force && mix hex.info
build:
commands:
- echo Entered the build phase...
- echo $CODEBUILD_RESOLVED_SOURCE_VERSION
- cd $CODEBUILD_SRC_DIR
- mix deps.get
- mix compile
- echo Building assets
- cd assets
- npm install
- cd ..
- echo Build started on `date` in dir `pwd`
- mix phx.digest
- mix release
post_build:
commands:
- echo Entered the post_build phase...
- echo Build completed on `date`
artifacts:
base-directory: server
files:
- "_build/prod/prod-*.tar.gz"
- appspec.yml
- CodeDeploy*.sh
discard-paths: yes