CI: Build frontend ui

This commit is contained in:
nemunaire 2021-08-31 21:00:37 +02:00
parent dcb0cb315b
commit 451b678e73
3 changed files with 18 additions and 2 deletions

View File

@ -58,6 +58,14 @@ steps:
environment:
CGO_ENABLED: 0
- name: build frontend ui
image: node:lts-alpine
commands:
- apk --no-cache add python2 build-base
- cd frontend/ui
- npm install --network-timeout=100000
- npm run build
- name: build dashboard
image: golang:alpine
commands:
@ -259,6 +267,14 @@ steps:
environment:
CGO_ENABLED: 0
- name: build frontend ui
image: node:lts-alpine
commands:
- apk --no-cache add python2 build-base
- cd frontend/ui
- npm install --network-timeout=100000
- npm run build
- name: build dashboard
image: golang:alpine
commands:

View File

@ -6,7 +6,7 @@ RUN apk --no-cache add python2 build-base
COPY frontend/ui/ .
RUN npm install --network-timeout100000
RUN npm install --network-timeout 100000
RUN npm run build

View File

@ -9,7 +9,6 @@
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
},
"devDependencies": {
"@popperjs/core": "^2.9.3",
"@sveltejs/kit": "next",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
@ -21,6 +20,7 @@
},
"type": "module",
"dependencies": {
"@popperjs/core": "^2.9.3",
"@sveltejs/adapter-static": "^1.0.0-next.17",
"bootstrap": "^5.1.0",
"bootstrap-icons": "^1.5.0"