Browse Source

[Mod] update drone

XuPeng 1 year ago
parent
commit
0f4bb2c20f
3 changed files with 11 additions and 2 deletions
  1. 9 0
      .drone.yml
  2. 2 1
      .npmrc
  3. 0 1
      Dockerfile

+ 9 - 0
.drone.yml

@@ -4,6 +4,15 @@ clone:
     tags: true
 
 pipeline:
+  build:
+    image:  docker.finogeeks.club/base/node-base:10
+    pull: true
+    secrets:
+      - NPM_TOKEN
+    commands:
+      - echo //npm-1.finogeeks.club/repository/npm/:_authToken=$${NPM_TOKEN} >> .npmrc
+      - npm i yarn -g
+      - yarn
   docker_latest:
     image: docker.finogeeks.club/drone/docker
     repo:  docker.finogeeks.club/finochat/finchat-desktop-publish

+ 2 - 1
.npmrc

@@ -1 +1,2 @@
-registry=https://registry.npm.taobao.org
+registry=https://mirrors.finogeeks.club/repository/npm/
+always-auth=true

+ 0 - 1
Dockerfile

@@ -3,6 +3,5 @@ MAINTAINER xupeng@finogeeks.com
 ADD nginx.conf /etc/nginx/nginx.conf
 WORKDIR /web
 COPY ./  /web
-RUN yarn 
 RUN npm install -g pm2
 CMD pm2 start pm2.json && pm2 log