From 8c31f56b9fecc830ec2f7bf4f13c2207f892e1e1 Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Sat, 11 Mar 2023 15:43:10 +0700 Subject: [PATCH] up version --- .drone.yml | 84 ++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 44 deletions(-) diff --git a/.drone.yml b/.drone.yml index 222adae..5e9eae4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,55 +3,51 @@ type: docker name: default steps: - - name: build - image: golang - commands: - - go build -o valera_tg_bot main.go + - name: build + image: golang + commands: + - go build -o valera_tg_bot main.go - name: scp - image: appleboy/drone-scp - settings: - host: - from_secret: server_ip - username: - from_secret: ssh_user - key: - from_secret: ssh_key - port: - from_secret: ssh_port - target: - - deploys/valera_tg_bot - source: - - valera_tg_bot - rm: true + image: appleboy/drone-scp + settings: + host: + from_secret: server_ip + username: + from_secret: ssh_user + key: + from_secret: ssh_key + port: + from_secret: ssh_port + target: + - deploys/valera_tg_bot + source: + - valera_tg_bot + rm: true - name: deploy - image: appleboy/drone-ssh - environment: - TOKEN: - from_secret: bot_token - TOKEN_WEATHER: - from_secret: bot_token_weather - CHAT_ID: - from_secret: bot_chat_id - PASSWORD: - from_secret: ssh_pass - settings: - host: - from_secret: server_ip - username: - from_secret: ssh_user - key: - from_secret: ssh_key - port: - from_secret: ssh_port - envs: [ TOKEN,TOKEN_WEATHER,CHAT_ID,PASSWORD ] - command_timeout: 10s - script: - - cd deploys/valera_tg_bot + image: appleboy/drone-ssh + environment: + TOKEN: + from_secret: bot_token + PASSWORD: + from_secret: ssh_pass + settings: + host: + from_secret: server_ip + username: + from_secret: ssh_user + key: + from_secret: ssh_key + port: + from_secret: ssh_port + envs: [ TOKEN,PASSWORD ] + command_timeout: 10s + script: + - cd deploys/valera_tg_bot - echo $${TOKEN} > token.txt - echo $${PASSWORD} | sudo -S systemctl restart valera trigger: - event: - - push \ No newline at end of file + event: + - push