feat(install): Download frontend assets from releases than build.

Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
Rajesh Rajendran 2021-07-06 16:05:19 +05:30
parent 2ed7a87d60
commit dd64a68699

View file

@ -74,16 +74,16 @@
register: result
until: result.rc == 0
when: enterprise_edition_license|length > 0
- name: initializing frontend
shell: |
user=`whoami`
sudo chown $user /var/run/docker.sock
bash build.sh
cp -arl public frontend
minio_pod=$(kubectl get po -n db -l app.kubernetes.io/name=minio -n db --output custom-columns=name:.metadata.name | tail -n+2)
kubectl -n db cp frontend $minio_pod:/data/
rm -rf frontend
args:
chdir: ../../frontend
- name: Downloading frontend archive
unarchive:
url: "https://github.com/openreplay/openreplay/releases/download/{{ openreplay_version }}/frontend.tar.gz"
dest: "frontend"
tags:
- frontend
- name: initializing frontend
shell: |
# Download frontend archive
minio_pod=$(kubectl get po -n db -l app.kubernetes.io/name=minio -n db --output custom-columns=name:.metadata.name | tail -n+2)
kubectl -n db cp frontend $minio_pod:/data/
tags:
- frontend