Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

palava-web: Build frontend on deploy #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions roles/palava-web/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ palava_web_repo: https://github.com/palavatv/palava-web.git
palava_web_version: v1.1.0
palava_web_environment: production
palava_web_rtc_url: wss://machine.palava.tv
palava_web_stun_url: ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Da wir ja eh hier überall die Einstellungen so haben wir wirs brauchen: wollen wir da mal richtige Werten eintragen?

palava_web_turn_urls: ""
11 changes: 10 additions & 1 deletion roles/palava-web/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,13 @@
git:
repo: "{{ palava_web_repo }}"
dest: "{{ palava_web_install_dir }}"
version: "{{ palava_web_version }}"
version: "{{ palava_web_version }}"

- name: Install palava-web dependencies
community.general.yarn:
path: "{{ palava_web_install_dir }}"

- name: Build palava-web frontend
shell: "VUE_APP_RTC_URL='{{ palava_web_rtc_url }}' VUE_APP_TURN_URLS='{{ palava_web_turn_urls }}' VUE_APP_STUN_URL='{{ palava_web_stun_url }}' yarn build"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

die environment variablen evtl. über "environment:" setzen? https://docs.ansible.com/ansible/latest/user_guide/playbooks_environment.html - dann kann/(muss?) man auch "command" statt "shell" nehmen.

args:
chdir: "{{ palava_web_install_dir }}"