Browse Source

ci: drone

feat
wally 4 years ago
parent
commit
8cddc7b3a3
  1. 44
      .drone.yml
  2. 1
      CHANGELOG.md

44
.drone.yml

@ -17,36 +17,36 @@ volumes:
path: /var/lib/data path: /var/lib/data
steps: steps:
- name: restore-cache # - name: restore-cache
image: drillster/drone-volume-cache # image: drillster/drone-volume-cache
volumes: # volumes:
- name: cache # - name: cache
path: /cache # path: /cache
settings: # settings:
restore: true # restore: true
mount: # mount:
- ./node_modules # - ./node_modules
- name: build - name: build
image: node:latest image: node:latest
pull: if-not-exists # default always pull: if-not-exists # default always
volumes: # volumes:
- name: cache # - name: cache
path: /root/.m2 # path: /root/.m2
commands: commands:
- npm config set registry http://registry.npm.taobao.org - npm config set registry http://registry.npm.taobao.org
- npm i - npm i
- npm run build:dev - npm run test
- name: rebuild-cache # - name: rebuild-cache
image: drillster/drone-volume-cache # image: drillster/drone-volume-cache
volumes: # volumes:
- name: cache # - name: cache
path: /cache # path: /cache
settings: # settings:
rebuild: true # rebuild: true
mount: # mount:
- ./node_modules # - ./node_modules
- name: deploy-scp - name: deploy-scp
image: appleboy/drone-scp image: appleboy/drone-scp

1
CHANGELOG.md

@ -50,6 +50,7 @@
- | 更新drone.yml | [63ec5a3](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/63ec5a3) - | 更新drone.yml | [63ec5a3](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/63ec5a3)
- | 更新drone.yml | [a57d598](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a57d598) - | 更新drone.yml | [a57d598](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/a57d598)
- | 测试ci | [6ab95f8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/6ab95f8) - | 测试ci | [6ab95f8](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/6ab95f8)
- | 测试ci' | [d25f2a7](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/d25f2a7)
- | 添加drone.yml | [9fbae89](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/9fbae89) - | 添加drone.yml | [9fbae89](https://101.201.226.163:50022/TALL/TALL-MUI-4/commits/9fbae89)

Loading…
Cancel
Save