Изменил(а) на '.drone.yml'
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			test plugin
This commit is contained in:
		
							
								
								
									
										47
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										47
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -1,22 +1,25 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
type: ssh
 | 
					type: docker
 | 
				
			||||||
name: Test
 | 
					name: Test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
server:
 | 
					clone:
 | 
				
			||||||
  host: 11.1.1.21
 | 
					  disable: true
 | 
				
			||||||
  user: tox
 | 
					
 | 
				
			||||||
  ssh_key:
 | 
					# server:
 | 
				
			||||||
    from_secret: rsa_key
 | 
					#   host: 11.1.1.21
 | 
				
			||||||
 | 
					#   user: tox
 | 
				
			||||||
 | 
					#   ssh_key:
 | 
				
			||||||
 | 
					#     from_secret: rsa_key
 | 
				
			||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - name: Show Environment
 | 
					  # - name: Show Environment
 | 
				
			||||||
    commands:
 | 
					  #   commands:
 | 
				
			||||||
      - whoami
 | 
					  #     - whoami
 | 
				
			||||||
      - pwd
 | 
					  #     - pwd
 | 
				
			||||||
      - hostname
 | 
					  #     - hostname
 | 
				
			||||||
      - ls
 | 
					  #     - ls
 | 
				
			||||||
      - ls -lta ~/
 | 
					  #     - ls -lta ~/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: ssh
 | 
					  - name: ssh
 | 
				
			||||||
    image: appleboy/drone-ssh
 | 
					    image: appleboy/drone-ssh
 | 
				
			||||||
@@ -32,12 +35,12 @@ steps:
 | 
				
			|||||||
        - echo "Hello World"
 | 
					        - echo "Hello World"
 | 
				
			||||||
        - mkdir ~/test
 | 
					        - mkdir ~/test
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: build
 | 
					  # - name: build
 | 
				
			||||||
    commands:
 | 
					  #   commands:
 | 
				
			||||||
      - cd src/
 | 
					  #     - cd src/
 | 
				
			||||||
      - gcc -o echo_bot tox_bot.c commands.c misc.c -std=gnu99 -lsodium -I /usr/local/include/ -ltoxcore -lconfig
 | 
					  #     - gcc -o echo_bot tox_bot.c commands.c misc.c -std=gnu99 -lsodium -I /usr/local/include/ -ltoxcore -lconfig
 | 
				
			||||||
      - mkdir ~/tox_bot 
 | 
					  #     - mkdir ~/tox_bot 
 | 
				
			||||||
      - cp echo_bot ~/tox_bot
 | 
					  #     - cp echo_bot ~/tox_bot
 | 
				
			||||||
      - cp ../{bot.cfg,masterkeys.txt} ~/tox_bot
 | 
					  #     - cp ../{bot.cfg,masterkeys.txt} ~/tox_bot
 | 
				
			||||||
      - ls -lta ~/
 | 
					  #     - ls -lta ~/
 | 
				
			||||||
      - sleep 15
 | 
					  #     - sleep 15
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user