|
@@ -1,28 +1,29 @@
|
|
|
-- name: Git checkout source code
|
|
|
|
|
- ansible.builtin.git:
|
|
|
|
|
- repo: "https://github.com/iapt-platform/mint.git"
|
|
|
|
|
- dest: "{{ playbook_dir }}/tmp/mint"
|
|
|
|
|
- version: "{{ mint_version }}"
|
|
|
|
|
|
|
+- name: Download source code
|
|
|
|
|
+ ansible.builtin.unarchive:
|
|
|
|
|
+ src: https://github.com/iapt-platform/mint/archive/{{ mint_version }}.zip
|
|
|
|
|
+ dest: "{{ playbook_dir }}/tmp"
|
|
|
|
|
+ creates: "{{ playbook_dir }}/tmp/mint-{{ mint_version }}"
|
|
|
|
|
+ remote_src: true
|
|
|
|
|
|
|
|
- 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/dashboard-v4/dashboard"
|
|
|
|
|
- creates: "{{ playbook_dir }}/tmp/mint/dashboard-v4/dashboard/node_modules"
|
|
|
|
|
|
|
+ dest: "{{ playbook_dir }}/tmp/mint-{{ mint_version }}/dashboard-v4/dashboard"
|
|
|
|
|
+ creates: "{{ playbook_dir }}/tmp/mint-{{ mint_version }}/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/dashboard-v4/dashboard"
|
|
|
|
|
- creates: "{{ playbook_dir }}/tmp/mint/dashboard-v4/dashboard/dist-{{ mint_version }}"
|
|
|
|
|
|
|
+ chdir: "{{ playbook_dir }}/tmp/mint-{{ mint_version }}/dashboard-v4/dashboard"
|
|
|
|
|
+ creates: "{{ playbook_dir }}/tmp/mint-{{ mint_version }}/dashboard-v4/dashboard/dist"
|
|
|
environment:
|
|
environment:
|
|
|
- BUILD_PATH: "dist-{{ mint_version }}"
|
|
|
|
|
|
|
+ BUILD_PATH: "dist"
|
|
|
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"
|
|
|
REACT_APP_LANGUAGES: "en-US,zh-Hans,zh-Hant"
|
|
REACT_APP_LANGUAGES: "en-US,zh-Hans,zh-Hant"
|
|
|
REACT_APP_ENABLE_LOCAL_TOKEN: "true"
|
|
REACT_APP_ENABLE_LOCAL_TOKEN: "true"
|
|
|
- REACT_APP_TOKEN_KEY: "token.20250215"
|
|
|
|
|
|
|
+ REACT_APP_TOKEN_KEY: "token.20250320"
|
|
|
REACT_APP_DOCUMENTS_SERVER: "{{ app_documents_server }}"
|
|
REACT_APP_DOCUMENTS_SERVER: "{{ app_documents_server }}"
|
|
|
REACT_APP_RPC_SERVER: "{{ app_grpc_web_server }}"
|
|
REACT_APP_RPC_SERVER: "{{ app_grpc_web_server }}"
|
|
|
REACT_APP_ASSETS_SERVER: "{{ app_assets_server }}"
|
|
REACT_APP_ASSETS_SERVER: "{{ app_assets_server }}"
|