diff --git a/.drone.yml b/.drone.yml index c226a56..5b8f4d8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,6 +26,13 @@ get: path: odit-ci-bot name: apikey +--- +kind: secret +name: npm_url +get: + path: odit-npm-cache + name: url + --- kind: pipeline type: kubernetes @@ -41,8 +48,9 @@ steps: - name: run tests image: registry.odit.services/hub/library/node:19.5.0-alpine3.16 commands: - - yarn - - yarn test:ci + - npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8 + - pnpm i + - pnpm test:ci trigger: event: - pull_request @@ -69,10 +77,8 @@ steps: password: from_secret: docker_password build_args: - - NPM_REGISTRY_DOMAIN: - from_secret: npmjs_domain - - NPM_REGISTRY_TOKEN: - from_secret: npmjs_token + - NPM_REGISTRY_URL: + from_secret: npm_url repo: lfk/backend tags: - dev @@ -109,10 +115,8 @@ steps: password: from_secret: docker_password build_args: - - NPM_REGISTRY_DOMAIN: - from_secret: npmjs_domain - - NPM_REGISTRY_TOKEN: - from_secret: npmjs_token + - NPM_REGISTRY_URL: + from_secret: npm_url repo: lfk/backend tags: - latest @@ -149,10 +153,8 @@ steps: password: from_secret: docker_password build_args: - - NPM_REGISTRY_DOMAIN: - from_secret: npmjs_domain - - NPM_REGISTRY_TOKEN: - from_secret: npmjs_token + - NPM_REGISTRY_URL: + from_secret: npm_url repo: lfk/backend tags: - "${DRONE_TAG}"