zuul/playbooks/dashboard/run.yaml
Tristan Cacqueray 04a15eeef7 web: use PUBLIC_URL instead of package.json patch
This change simplify dashboard run playbook to fix sub-url serving of
ci build.

Change-Id: I58db8958894f2b51cca03752d9913ca11df5bba4
2018-10-11 07:33:30 -07:00

15 lines
510 B
YAML

- hosts: all
roles:
- revoke-sudo
- set-zuul-log-path-fact
- role: npm
npm_command: build
environment:
REACT_APP_ZUUL_API: "{{ zuul_api_url }}/api/"
PUBLIC_URL: './'
# NOTE: using "./" is not enough to support html5 links, even with
# rewrite rules for unknown files, accessing 'job/devstack' will make
# the dashboard load static files from 'job/static/...'
# This works for the preview dashboard that can only be loaded from the
# npm/html directory anyway.