rm pkill from drone
This commit is contained in:
		
							parent
							
								
									25ecf7b87a
								
							
						
					
					
						commit
						3e0f9be420
					
				@ -29,6 +29,8 @@ steps:
 | 
				
			|||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
      TOKEN:
 | 
					      TOKEN:
 | 
				
			||||||
        from_secret: bot_token
 | 
					        from_secret: bot_token
 | 
				
			||||||
 | 
					      PASSWORD:
 | 
				
			||||||
 | 
					        from_secret: ssh_pass
 | 
				
			||||||
    settings:
 | 
					    settings:
 | 
				
			||||||
      host:
 | 
					      host:
 | 
				
			||||||
        from_secret: ssh_ip
 | 
					        from_secret: ssh_ip
 | 
				
			||||||
@ -38,11 +40,12 @@ steps:
 | 
				
			|||||||
        from_secret: ssh_pass
 | 
					        from_secret: ssh_pass
 | 
				
			||||||
      port:
 | 
					      port:
 | 
				
			||||||
        from_secret: ssh_port
 | 
					        from_secret: ssh_port
 | 
				
			||||||
      envs: [ TOKEN ]
 | 
					      envs: [ TOKEN,PASSWORD ]
 | 
				
			||||||
      command_timeout: 10s
 | 
					      command_timeout: 10s
 | 
				
			||||||
      script:
 | 
					      script:
 | 
				
			||||||
        - cd bots
 | 
					        - cd bots
 | 
				
			||||||
        - echo $${TOKEN} > token.txt
 | 
					        - echo $${TOKEN} > token.txt
 | 
				
			||||||
 | 
					        - echo $${PASSWORD} | sudo -S systemctl restart butler_tg_bot
 | 
				
			||||||
 | 
					
 | 
				
			||||||
trigger:
 | 
					trigger:
 | 
				
			||||||
  event:
 | 
					  event:
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							@ -91,7 +91,7 @@ func run() {
 | 
				
			|||||||
		case commands.Help:
 | 
							case commands.Help:
 | 
				
			||||||
			_, _ = bot.Send(tgbot.NewMessage(chatID, "Вот что я умею:\n\n1) Позвать всех"))
 | 
								_, _ = bot.Send(tgbot.NewMessage(chatID, "Вот что я умею:\n\n1) Позвать всех"))
 | 
				
			||||||
		case commands.Ping:
 | 
							case commands.Ping:
 | 
				
			||||||
			_, _ = bot.Send(tgbot.NewMessage(chatID, "pong v3"))
 | 
								_, _ = bot.Send(tgbot.NewMessage(chatID, "pong v4"))
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user