Moved ci to pnpm w/ cache

This commit is contained in:
Nicolai Ort 2023-03-29 20:34:12 +02:00
parent f78365f062
commit 8610e0b285
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

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: