|
@@ -1,16 +1,22 @@
|
|
|
|
|
+- name: Git checkout repo
|
|
|
|
|
+ ansible.builtin.git:
|
|
|
|
|
+ repo: "https://github.com/iapt-platform/mint.git"
|
|
|
|
|
+ dest: "{{ playbook_dir }}/tmp/mint"
|
|
|
|
|
+ version: "{{ mint_version }}"
|
|
|
|
|
+
|
|
|
- name: Extract dashboard node_modules
|
|
- name: Extract dashboard node_modules
|
|
|
ansible.builtin.unarchive:
|
|
ansible.builtin.unarchive:
|
|
|
src: dashboard-20241201115354.tar.xz
|
|
src: dashboard-20241201115354.tar.xz
|
|
|
- dest: "{{ playbook_dir }}/tmp/mint-{{ mint_version }}/dashboard-v4/dashboard"
|
|
|
|
|
- creates: "{{ playbook_dir }}/tmp/mint-{{ mint_version }}/dashboard-v4/dashboard/node_modules"
|
|
|
|
|
|
|
+ dest: "{{ playbook_dir }}/tmp/mint/dashboard-v4/dashboard"
|
|
|
|
|
+ creates: "{{ playbook_dir }}/tmp/mint/dashboard-v4/dashboard/node_modules"
|
|
|
|
|
|
|
|
- name: Build dashboard dist
|
|
- name: Build dashboard dist
|
|
|
ansible.builtin.shell: yarn build
|
|
ansible.builtin.shell: yarn build
|
|
|
args:
|
|
args:
|
|
|
- chdir: "{{ playbook_dir }}/tmp/mint-{{ mint_version }}/dashboard-v4/dashboard"
|
|
|
|
|
- creates: "{{ playbook_dir }}/tmp/mint-{{ mint_version }}/dashboard-v4/dashboard/dist"
|
|
|
|
|
|
|
+ chdir: "{{ playbook_dir }}/tmp/mint/dashboard-v4/dashboard"
|
|
|
|
|
+ creates: "{{ playbook_dir }}/tmp/mint/dashboard-v4/dashboard/dist-{{ mint_version }}"
|
|
|
environment:
|
|
environment:
|
|
|
- BUILD_PATH: "dist"
|
|
|
|
|
|
|
+ BUILD_PATH: "dist-{{ mint_version }}"
|
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
|
NODE_OPTIONS: "--max_old_space_size=4096"
|
|
|
PUBLIC_URL: "{{ app_dashboard_base_path }}"
|
|
PUBLIC_URL: "{{ app_dashboard_base_path }}"
|
|
|
REACT_APP_DEFAULT_LOCALE: "zh-Hans"
|
|
REACT_APP_DEFAULT_LOCALE: "zh-Hans"
|