mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-04-28 03:32:27 +00:00
sparkles: Integrate documentation to Web UI (#741)
* Integrate documentation to Web UI Relates to #738 Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * submodule update Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> * Use hugo docker image Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com> --------- Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
parent
f52ec9f27c
commit
c1addf53ee
@ -113,6 +113,7 @@ version:
|
||||
build-kairos-agent:
|
||||
FROM +go-deps
|
||||
COPY +webui-deps/node_modules ./internal/webui/public/node_modules
|
||||
COPY +docs/public/local ./internal/webui/public/local
|
||||
DO +BUILD_GOLANG --BIN=kairos-agent --SRC=agent --CGO_ENABLED=$CGO_ENABLED
|
||||
|
||||
build:
|
||||
@ -635,3 +636,11 @@ webui-deps:
|
||||
WORKDIR ./internal/webui/public
|
||||
RUN npm install
|
||||
SAVE ARTIFACT node_modules /node_modules AS LOCAL internal/webui/public/node_modules
|
||||
|
||||
docs:
|
||||
FROM klakegg/hugo:ext-alpine
|
||||
COPY . .
|
||||
WORKDIR ./docs
|
||||
RUN npm run prepare
|
||||
RUN HUGO_ENV="production" hugo --gc -b "/local/" -d "public/local"
|
||||
SAVE ARTIFACT public /public AS LOCAL docs/public
|
||||
|
Loading…
Reference in New Issue
Block a user