Compare commits

..

No commits in common. "8610e0b285939f118fab952ca00e76b1ff659a16" and "6df7b516aa09f937c23ab19494767867e1ebf8da" have entirely different histories.

3 changed files with 6 additions and 2792 deletions

View File

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

View File

@ -1,13 +1,5 @@
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.16 as build FROM node:15.11.0-alpine3.13
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
WORKDIR /app 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 . . COPY . .
RUN pnpm build RUN yarn
RUN yarn 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

File diff suppressed because it is too large Load Diff