Compare commits
No commits in common. "8610e0b285939f118fab952ca00e76b1ff659a16" and "6df7b516aa09f937c23ab19494767867e1ebf8da" have entirely different histories.
8610e0b285
...
6df7b516aa
17
.drone.yml
17
.drone.yml
@ -12,30 +12,19 @@ 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: registry.odit.services/hub/library/node:19.5.0-alpine3.16
|
||||
image: node:15.11.0-alpine3.13
|
||||
commands:
|
||||
- apk add git zip -f
|
||||
- npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
|
||||
- pnpm i
|
||||
- pnpm build
|
||||
- yarn
|
||||
- yarn 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:
|
||||
|
14
Dockerfile
14
Dockerfile
@ -1,13 +1,5 @@
|
||||
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.16 as build
|
||||
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
|
||||
FROM node:15.11.0-alpine3.13
|
||||
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 pnpm build
|
||||
|
||||
FROM registry.odit.services/library/nginx-brotli:3.15 as final
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
RUN yarn
|
||||
RUN yarn build
|
2767
pnpm-lock.yaml
generated
2767
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user