提交 drone 文件 7
This commit is contained in:
		
							
								
								
									
										26
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -20,16 +20,16 @@ steps:
 | 
			
		||||
  commands:
 | 
			
		||||
    - python3 test.py
 | 
			
		||||
- name: deploy
 | 
			
		||||
	image: appleboy/drone-ssh
 | 
			
		||||
	settings:
 | 
			
		||||
		host: 118.25.83.116
 | 
			
		||||
		username: root
 | 
			
		||||
		# secrets 的 ssh-key 是固定用法
 | 
			
		||||
		# 这个参数是在 drone 中对应仓库的 secrets 选项中添加的,名字必须是 ssh_key
 | 
			
		||||
		key:
 | 
			
		||||
			from_secret: ssh_key
 | 
			
		||||
		port: 22
 | 
			
		||||
		# stoping script after first failure
 | 
			
		||||
		script_stop: true
 | 
			
		||||
		script:
 | 
			
		||||
			- echo "yulong test" > /tmp/yulong_test.drone
 | 
			
		||||
  image: appleboy/drone-ssh
 | 
			
		||||
  settings:
 | 
			
		||||
  	host: 118.25.83.116
 | 
			
		||||
	username: root
 | 
			
		||||
	# secrets 的 ssh-key 是固定用法
 | 
			
		||||
	# 这个参数是在 drone 中对应仓库的 secrets 选项中添加的,名字必须是 ssh_key
 | 
			
		||||
	key:
 | 
			
		||||
		from_secret: ssh_key
 | 
			
		||||
	port: 22
 | 
			
		||||
	# stoping script after first failure
 | 
			
		||||
	script_stop: true
 | 
			
		||||
	script:
 | 
			
		||||
		- echo "yulong test" > /tmp/yulong_test.drone
 | 
			
		||||
		Reference in New Issue
	
	Block a user