Use the new process to build web

This commit is contained in:
Dryusdan 2022-08-03 10:28:23 +02:00
parent bd91a82a31
commit 91f0ec739e
1 changed files with 29 additions and 3 deletions

View File

@ -177,7 +177,20 @@
- upgrade
- name: Init build
shell: "npm run sub:init"
shell: "npm ci"
args:
chdir: "{{ item.home }}/web-vault"
become: yes
become_user : "{{ item.name }}"
become_method: su
become_flags: '-s /bin/bash'
loop: "{{ bitwarden }}"
tags:
- install
- upgrade
- name: Init build with fix
shell: "npm audit fix || true"
args:
chdir: "{{ item.home }}/web-vault"
become: yes
@ -190,9 +203,22 @@
- upgrade
- name: Install npm dependancies
shell: "npm install"
shell: "npm run dist:oss:selfhost"
args:
chdir: "{{ item.home }}/web-vault"
chdir: "{{ item.home }}/web-vault/apps/web"
become: yes
become_user : "{{ item.name }}"
become_method: su
become_flags: '-s /bin/bash'
loop: "{{ bitwarden }}"
tags:
- install
- upgrade
- name: Install npm dependancies
shell: "printf '{\"version":"%s\"}' $(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' https://github.com/dani-garcia/bw_web_builds.git 'v*' | tail -n1 | sed -E 's#.*?refs/tags/v##') > build/vw-version.json"
args:
chdir: "{{ item.home }}/web-vault/apps/web"
become: yes
become_user : "{{ item.name }}"
become_method: su