diff --git a/.drone.yml b/.drone.yml index d19c52c..9a31bdb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: