45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
|
- name: Copy production build config
|
||
|
copy:
|
||
|
dest: '/home/repositories/pleroma/config/prod.secret.exs'
|
||
|
content: 'import Mix.Config'
|
||
|
follow: yes
|
||
|
tags:
|
||
|
- setup
|
||
|
- build
|
||
|
- name: Fetch hex
|
||
|
shell:
|
||
|
chdir: "/home/repositories/pleroma/"
|
||
|
cmd: "MIX_ENV=prod mix local.hex --force"
|
||
|
tags:
|
||
|
- setup
|
||
|
- build
|
||
|
- name: Fetch rebar
|
||
|
shell:
|
||
|
chdir: "/home/repositories/pleroma/"
|
||
|
cmd: "MIX_ENV=prod mix local.rebar --force"
|
||
|
tags:
|
||
|
- setup
|
||
|
- build
|
||
|
- name: Fetch dependencies
|
||
|
shell:
|
||
|
chdir: "/home/repositories/pleroma/"
|
||
|
cmd: "MIX_ENV=prod mix deps.get --only prod"
|
||
|
tags:
|
||
|
- setup
|
||
|
- build
|
||
|
- name: Ensure that output dir is created
|
||
|
file:
|
||
|
path: '/etc/pleroma'
|
||
|
state: directory
|
||
|
follow: yes
|
||
|
tags:
|
||
|
- setup
|
||
|
- build
|
||
|
- name: Build pleroma
|
||
|
shell:
|
||
|
chdir: "/home/repositories/pleroma/"
|
||
|
cmd: "MIX_ENV=prod mix release --path /etc/pleroma"
|
||
|
tags:
|
||
|
- setup
|
||
|
- build
|