Compare commits

...

5 Commits

Author SHA1 Message Date
8610e0b285
Moved ci to pnpm w/ cache 2023-03-29 20:34:12 +02:00
f78365f062
added webserver to docker build 2023-03-29 20:32:49 +02:00
02b31f277f
Added missing copy 2023-03-29 20:31:54 +02:00
5f865081a6
Lockfile 2023-03-29 20:31:29 +02:00
90c1413fa1
Switched dockerfile over to pnpm 8 and cache 2023-03-29 20:31:03 +02:00
3 changed files with 2792 additions and 6 deletions

View File

@ -12,19 +12,30 @@ get:
path: odit-ci-bot
name: apikey
---
kind: secret
name: npm_url
get:
path: odit-npm-cache
name: url
---
kind: pipeline
type: kubernetes
name: build:tag
steps:
- name: run build
image: node:15.11.0-alpine3.13
image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
commands:
- apk add git zip -f
- yarn
- yarn build
- npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
- pnpm i
- pnpm build
- mkdir out
- zip -r out/dist.zip dist
environment:
NPM_REGISTRY_URL:
from_secret: npm_url
- name: gitea add packages to build
image: plugins/gitea-release
settings:

View File

@ -1,5 +1,13 @@
FROM node:15.11.0-alpine3.13
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.16 as build
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
WORKDIR /app
COPY package.json ./
RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
RUN mkdir /pnpm && pnpm config set store-dir /pnpm && pnpm i
COPY . .
RUN yarn
RUN yarn build
RUN pnpm build
FROM registry.odit.services/library/nginx-brotli:3.15 as final
COPY --from=build /app/dist /usr/share/nginx/html

2767
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff