a68292c7e9
Allows serving the UI under a subpath (e.g. /ui) instead of root.
- Vite config reads BASE_PATH env var, sets it as the asset base
and injects __BASE_PATH__ for runtime use
- React Router uses basename from __BASE_PATH__ for client-side routing
- Nginx config uses ${BASE_PATH} placeholder, replaced at build time
- Dockerfile accepts BASE_PATH build arg (default: /)
- Woodpecker docker pipeline passes BASE_PATH=/ui
33 lines
726 B
YAML
33 lines
726 B
YAML
when:
|
|
- event: tag
|
|
ref: refs/tags/v*
|
|
|
|
steps:
|
|
- name: docker-api
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
registry: git.unkin.net
|
|
repo: git.unkin.net/unkin/artifactapi
|
|
username: droneci
|
|
password:
|
|
from_secret: DRONECI_PASSWORD
|
|
tags:
|
|
- ${CI_COMMIT_TAG}
|
|
- latest
|
|
|
|
- name: docker-web
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
registry: git.unkin.net
|
|
repo: git.unkin.net/unkin/artifactapi-ui
|
|
dockerfile: ui/Dockerfile.ui
|
|
context: ui
|
|
build_args:
|
|
- BASE_PATH=/ui
|
|
username: droneci
|
|
password:
|
|
from_secret: DRONECI_PASSWORD
|
|
tags:
|
|
- ${CI_COMMIT_TAG}
|
|
- latest
|