From 5b376e1813a303e146a64121aa0c610995e01aaf Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 16 Jan 2023 00:33:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix file, deploy added --- .drone.yml | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index b07d9a0..3f1c6d9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,7 @@ --- kind: pipeline type: docker -name: Deploy Bot +name: Deploy Tox Bot clone: disable: true @@ -29,6 +29,8 @@ steps: command_timeout: 2m script: - if [ ! -d ~/tox_source ]; then mkdir ~/tox_source; fi + - 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 image: appleboy/drone-scp @@ -53,22 +55,14 @@ steps: port: 22 command_timeout: 2m script: - - tar -xvzf dtox.tar.gz -C ~/tox_source + - tar -xvzf tox.tar.gz -C ~/tox_source - ls -la ~/tox_source + - 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 + - ls -lta ~/tox_bot + - rm -rfd ~/tox_source + - rm ~/tox.tar.gz -# server: -# host: 11.1.1.21 -# user: tox -# ssh_key: -# from_secret: rsa_key - - # - name: build - # commands: - # - cd src/ - # - gcc -o echo_bot tox_bot.c commands.c misc.c -std=gnu99 -lsodium -I /usr/local/include/ -ltoxcore -lconfig - # - mkdir ~/tox_bot - # - cp echo_bot ~/tox_bot - # - cp ../{bot.cfg,masterkeys.txt} ~/tox_bot - # - ls -lta ~/ - # - sleep 15