forked from zguiy/utils
		
	123
This commit is contained in:
		
							
								
								
									
										11
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								.drone.yml
									
									
									
									
									
								
							@ -8,11 +8,9 @@ steps:
 | 
			
		||||
  - name: 构建项目
 | 
			
		||||
    image: node:18-alpine
 | 
			
		||||
    commands:
 | 
			
		||||
      - npm install
 | 
			
		||||
      - rm -rf node_modules
 | 
			
		||||
      - npm ci
 | 
			
		||||
      - npm run build
 | 
			
		||||
    volumes:
 | 
			
		||||
      - name: node_modules_cache
 | 
			
		||||
        path: /drone/src/node_modules
 | 
			
		||||
 | 
			
		||||
  # 第二步:上传静态资源到腾讯云COS (使用另一个插件)
 | 
			
		||||
  - name: 静态资源上传到cos
 | 
			
		||||
@ -74,11 +72,6 @@ steps:
 | 
			
		||||
        - master  
 | 
			
		||||
        - dev
 | 
			
		||||
 | 
			
		||||
# 定义数据卷用于缓存node_modules
 | 
			
		||||
volumes:
 | 
			
		||||
  - name: node_modules_cache
 | 
			
		||||
    host:
 | 
			
		||||
      path: /tmp/drone_cache/node_modules
 | 
			
		||||
 | 
			
		||||
# 触发条件
 | 
			
		||||
trigger:
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user