| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- - name: Setup local build folder
- hosts: localhost
- tasks:
- - name: Git checkout repo
- ansible.builtin.git:
- repo: "https://github.com/iapt-platform/mint.git"
- dest: "{{ playbook_dir }}/tmp/mint"
- version: "{{ mint_version }}"
- - name: Build on local
- hosts: localhost
- roles:
- - mint-dashboard-v4-build
- - mint-openai-proxy-build
- - name: Setup deploy folder
- hosts: all:!localhost
- tasks:
- - name: Create www folder
- become: true
- ansible.builtin.file:
- path: "{{ app_deploy_target | dirname }}"
- state: directory
- owner: "{{ ansible_user }}"
- mode: "0755"
- - name: Upload local build dist folders
- hosts: building
- tasks:
- - name: Upload dashboard-v4 dist
- ansible.posix.synchronize:
- src: "{{ playbook_dir }}/tmp/mint/dashboard-v4/dashboard/dist-{{ mint_version }}/"
- dest: "{{ app_deploy_target }}/dashboard-v4/dashboard/dist/"
- - name: Upload openai-proxy dist
- ansible.posix.synchronize:
- src: "{{ playbook_dir }}/tmp/mint/open-ai-server/dist/"
- dest: "{{ app_deploy_target }}/open-ai-server/dist/"
- - name: Build mint package on remote
- hosts: building
- roles:
- - mint-release-build
- - name: Build mint package
- hosts:
- - web
- - fort
- - fpm
- - task
- - ai_translate
- - openai_proxy
- tasks:
- - name: "Upload mint-{{ mint_version }}.tar.xz"
- ansible.builtin.unarchive:
- src: "{{ ansible_env.HOME }}/build/mint-{{ mint_version }}/tmp/{{ app_domain }}/mint-{{ mint_version }}.tar.xz"
- dest: /srv/{{ app_domain }}
- creates: "{{ app_deploy_target }}"
- delegate_to: building
|