Skip to content

Commit a9fac2c

Browse files
committed
Add pnpm and explorer build
1 parent efb20e5 commit a9fac2c

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

infra/ansible/playbooks/explorer.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,35 @@
2222
vars:
2323
service: "explorer"
2424

25-
tasks:
25+
pre_tasks:
26+
27+
- name: Install pnpm
28+
ansible.builtin.shell:
29+
cmd: npm install -g pnpm
2630

2731
- name: Clone the aligned_layer repository
32+
register: clone_repo
2833
ansible.builtin.git:
2934
repo: https://github.com/yetanotherco/aligned_layer
3035
dest: "{{ ansible_env.HOME }}/aligned_layer"
3136
update: yes
37+
38+
39+
tasks:
40+
41+
- name: Build the explorer release
42+
args:
43+
chdir: "{{ clone_repo.git_dir_now }}"
44+
environment:
45+
MIX_ENV: prod
46+
ansible.builtin.shell:
47+
cmd: |
48+
set -ex
49+
mix local.hex --force
50+
mix local.rebar --force
51+
mix deps.get --only $MIX_ENV
52+
mix compile
53+
pnpm --prefix=assets/ install
54+
mix phx.digest
55+
mix assets.deploy
56+
mix release

0 commit comments

Comments
 (0)