root: use npm ci
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
4c14e88a25
commit
e455e20312
|
@ -138,7 +138,7 @@ jobs:
|
||||||
if: steps.cache-web.outputs.cache-hit != 'true'
|
if: steps.cache-web.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd web
|
cd web
|
||||||
npm i
|
npm ci
|
||||||
npm run build
|
npm run build
|
||||||
- name: run e2e
|
- name: run e2e
|
||||||
run: |
|
run: |
|
||||||
|
@ -171,7 +171,7 @@ jobs:
|
||||||
if: steps.cache-web.outputs.cache-hit != 'true'
|
if: steps.cache-web.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd web
|
cd web
|
||||||
npm i
|
npm ci
|
||||||
npm run build
|
npm run build
|
||||||
- name: run e2e
|
- name: run e2e
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -116,7 +116,7 @@ jobs:
|
||||||
- name: Build web
|
- name: Build web
|
||||||
run: |
|
run: |
|
||||||
cd web
|
cd web
|
||||||
npm install
|
npm ci
|
||||||
npm run build-proxy
|
npm run build-proxy
|
||||||
- name: Build outpost
|
- name: Build outpost
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
cache-dependency-path: web/package-lock.json
|
cache-dependency-path: web/package-lock.json
|
||||||
- run: |
|
- run: |
|
||||||
cd web
|
cd web
|
||||||
npm install
|
npm ci
|
||||||
- name: Generate API
|
- name: Generate API
|
||||||
run: make gen-web
|
run: make gen-web
|
||||||
- name: Eslint
|
- name: Eslint
|
||||||
|
@ -40,7 +40,7 @@ jobs:
|
||||||
cache-dependency-path: web/package-lock.json
|
cache-dependency-path: web/package-lock.json
|
||||||
- run: |
|
- run: |
|
||||||
cd web
|
cd web
|
||||||
npm install
|
npm ci
|
||||||
- name: Generate API
|
- name: Generate API
|
||||||
run: make gen-web
|
run: make gen-web
|
||||||
- name: prettier
|
- name: prettier
|
||||||
|
@ -58,7 +58,7 @@ jobs:
|
||||||
cache-dependency-path: web/package-lock.json
|
cache-dependency-path: web/package-lock.json
|
||||||
- run: |
|
- run: |
|
||||||
cd web
|
cd web
|
||||||
npm install
|
npm ci
|
||||||
- name: Generate API
|
- name: Generate API
|
||||||
run: make gen-web
|
run: make gen-web
|
||||||
- name: lit-analyse
|
- name: lit-analyse
|
||||||
|
@ -86,7 +86,7 @@ jobs:
|
||||||
cache-dependency-path: web/package-lock.json
|
cache-dependency-path: web/package-lock.json
|
||||||
- run: |
|
- run: |
|
||||||
cd web
|
cd web
|
||||||
npm install
|
npm ci
|
||||||
- name: Generate API
|
- name: Generate API
|
||||||
run: make gen-web
|
run: make gen-web
|
||||||
- name: build
|
- name: build
|
||||||
|
|
|
@ -99,7 +99,7 @@ jobs:
|
||||||
- name: Build web
|
- name: Build web
|
||||||
run: |
|
run: |
|
||||||
cd web
|
cd web
|
||||||
npm install
|
npm ci
|
||||||
npm run build-proxy
|
npm run build-proxy
|
||||||
- name: Build outpost
|
- name: Build outpost
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: Publish package
|
- name: Publish package
|
||||||
run: |
|
run: |
|
||||||
cd web-api/
|
cd web-api/
|
||||||
npm i
|
npm ci
|
||||||
npm publish
|
npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
||||||
|
|
|
@ -4,7 +4,7 @@ FROM --platform=${BUILDPLATFORM} docker.io/node:16 as website-builder
|
||||||
COPY ./website /work/website/
|
COPY ./website /work/website/
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN cd /work/website && npm i && npm run build-docs-only
|
RUN cd /work/website && npm ci && npm run build-docs-only
|
||||||
|
|
||||||
# Stage 2: Build webui
|
# Stage 2: Build webui
|
||||||
FROM --platform=${BUILDPLATFORM} docker.io/node:16 as web-builder
|
FROM --platform=${BUILDPLATFORM} docker.io/node:16 as web-builder
|
||||||
|
@ -13,7 +13,7 @@ COPY ./web /work/web/
|
||||||
COPY ./website /work/website/
|
COPY ./website /work/website/
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN cd /work/web && npm i && npm run build
|
RUN cd /work/web && npm ci && npm run build
|
||||||
|
|
||||||
# Stage 3: Build go proxy
|
# Stage 3: Build go proxy
|
||||||
FROM docker.io/golang:1.18.1-bullseye AS builder
|
FROM docker.io/golang:1.18.1-bullseye AS builder
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -132,8 +132,8 @@ ci-pending-migrations: ci--meta-debug
|
||||||
|
|
||||||
install:
|
install:
|
||||||
poetry install
|
poetry install
|
||||||
cd web && npm i
|
cd web && npm ci
|
||||||
cd website && npm i
|
cd website && npm ci
|
||||||
|
|
||||||
a: install
|
a: install
|
||||||
tmux \
|
tmux \
|
||||||
|
|
|
@ -4,7 +4,7 @@ FROM --platform=${BUILDPLATFORM} docker.io/node:16 as web-builder
|
||||||
COPY ./web /static/
|
COPY ./web /static/
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN cd /static && npm i && npm run build-proxy
|
RUN cd /static && npm ci && npm run build-proxy
|
||||||
|
|
||||||
# Stage 2: Build
|
# Stage 2: Build
|
||||||
FROM docker.io/golang:1.18.1-bullseye AS builder
|
FROM docker.io/golang:1.18.1-bullseye AS builder
|
||||||
|
|
Reference in New Issue