持续集成
continuous-integration/drone/push Build is failing Details

This commit is contained in:
jukaifeng 2023-04-07 13:52:56 +08:00
parent b670742432
commit 3aefd8c2cf
1 changed files with 15 additions and 23 deletions

View File

@ -4,28 +4,20 @@ type: docker # 定义管道类型
name: default # 定义管道名称 name: default # 定义管道名称
volumes:
- name: node_modules # 数据卷名称
# Host Volume, 挂载到宿主机上的卷轴
host:
# 宿主机的绝对路径
path: /home/drone/cache/blog/node_modules
steps: steps:
- name: public-npm # 步骤名称 # - name: public-npm # 步骤名称
image: node:12.22.5 # 使用镜像和版本 # image: node:12.22.5 # 使用镜像和版本
environment: # environment:
NPM: # NPM:
from_secret: npm # from_secret: npm
commands: # commands:
- pwd # 查看当前目录 `/drone/src` # - pwd # 查看当前目录 `/drone/src`
- ls -alt # - ls -alt
- npm config set registry https://registry.npmjs.org # 切换官方仓库 # - npm config set registry https://registry.npmjs.org # 切换官方仓库
- npm config set -- $NPM # 切换官方仓库 # - npm config set -- $NPM # 切换官方仓库
- npm publish --access public # 发布 # - npm publish --access public # 发布
when: # when:
event: tag # event: tag
- name: public-dllcnx # 步骤名称 - name: public-dllcnx # 步骤名称
image: node:12.22.5 # 使用镜像和版本 image: node:12.22.5 # 使用镜像和版本
@ -41,8 +33,8 @@ steps:
- npm config set -- $DLLCNX_NPM - npm config set -- $DLLCNX_NPM
# 切换私有仓库 # 切换私有仓库
- npm publish # 发布 - npm publish # 发布
when: # when:
event: tag # event: tag
- name: deploy-project - name: deploy-project
image: appleboy/drone-scp image: appleboy/drone-scp