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 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: node:15.11.0-alpine3.13 image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
commands: commands:
- apk add git zip -f - apk add git zip -f
- yarn - npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
- yarn build - pnpm i
- 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: