We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efb20e5 commit a9fac2cCopy full SHA for a9fac2c
1 file changed
infra/ansible/playbooks/explorer.yaml
@@ -22,10 +22,35 @@
22
vars:
23
service: "explorer"
24
25
- tasks:
+ pre_tasks:
26
+
27
+ - name: Install pnpm
28
+ ansible.builtin.shell:
29
+ cmd: npm install -g pnpm
30
31
- name: Clone the aligned_layer repository
32
+ register: clone_repo
33
ansible.builtin.git:
34
repo: https://github.com/yetanotherco/aligned_layer
35
dest: "{{ ansible_env.HOME }}/aligned_layer"
36
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
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