Изменил(а) на '.drone.yml'
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			Upgrated deploy
This commit is contained in:
		
							
								
								
									
										10
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -7,7 +7,7 @@ clone:
 | 
			
		||||
  disable: true
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
  - name: clone
 | 
			
		||||
  - name: Clone repo
 | 
			
		||||
    image: alpine/git
 | 
			
		||||
    extra_hosts:
 | 
			
		||||
      - "git.santic-zombie.ru:11.1.1.20"
 | 
			
		||||
@@ -17,7 +17,7 @@ steps:
 | 
			
		||||
      - git checkout $DRONE_COMMIT
 | 
			
		||||
      - tar -czpf tox.tar.gz *
 | 
			
		||||
 | 
			
		||||
  - name: prepare source
 | 
			
		||||
  - name: Prepare to deploy
 | 
			
		||||
    image: appleboy/drone-ssh
 | 
			
		||||
    settings:
 | 
			
		||||
      host:
 | 
			
		||||
@@ -32,7 +32,7 @@ steps:
 | 
			
		||||
        - if [ ! -d ~/tox_bot ]; then mkdir ~/tox_bot; fi
 | 
			
		||||
        - if [ -f ~/tox_bot/echo_bot ]; then rm ~/tox_bot/echo_bot; fi       
 | 
			
		||||
 | 
			
		||||
  - name: copy files
 | 
			
		||||
  - name: Copy source bot files
 | 
			
		||||
    image: appleboy/drone-scp
 | 
			
		||||
    settings:
 | 
			
		||||
      host:
 | 
			
		||||
@@ -44,7 +44,7 @@ steps:
 | 
			
		||||
      target: ~/
 | 
			
		||||
      source: tox.tar.gz
 | 
			
		||||
 | 
			
		||||
  - name: build
 | 
			
		||||
  - name: Build, deploy, clean
 | 
			
		||||
    image: appleboy/drone-ssh
 | 
			
		||||
    settings:
 | 
			
		||||
      host:
 | 
			
		||||
@@ -60,7 +60,7 @@ steps:
 | 
			
		||||
        - cd ~/tox_source/src
 | 
			
		||||
        - gcc -o echo_bot tox_bot.c commands.c misc.c -std=gnu99 -lsodium -I /usr/local/include/ -ltoxcore -lconfig
 | 
			
		||||
        - cp echo_bot ~/tox_bot
 | 
			
		||||
        - cp ../{bot.cfg,masterkeys.txt} ~/tox_bot
 | 
			
		||||
        - cp -f ../bot.cfg ../masterkeys.txt ~/tox_bot/
 | 
			
		||||
        - ls -lta ~/tox_bot
 | 
			
		||||
        - rm -rfd ~/tox_source
 | 
			
		||||
        - rm ~/tox.tar.gz
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user