From f1ffb41b378cb0226702cd9d25dd3311fb5c583b Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 15 Jan 2023 23:57:48 +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 --- .drone.yml | 56 ++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 42 insertions(+), 14 deletions(-) diff --git a/.drone.yml b/.drone.yml index 15e6494..1d30696 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,25 +1,46 @@ --- kind: pipeline type: docker -name: Test +name: Building clone: disable: true -# server: -# host: 11.1.1.21 -# user: tox -# ssh_key: -# from_secret: rsa_key - steps: - # - name: Show Environment - # commands: - # - whoami - # - pwd - # - hostname - # - ls - # - ls -lta ~/ + - name: clone + image: alpine/git + extra_hosts: + - "git.santic-zombie.ru:11.1.1.20" + commands: + - ping -c 1 git.santic-zombie.ru + - git clone https://git.santic-zombie.ru/santic/tox-bot.git . + - git checkout $DRONE_COMMIT + - tar -czpf tox.tar.gz * + + - name: ssh + image: appleboy/drone-ssh + settings: + host: + - 11.1.1.21 + username: tox + key: + from_secret: rsa_key + port: 22 + command_timeout: 2m + script: + - mkdir ~/tox_source + + - name: scp files + image: appleboy/drone-scp + settings: + host: + - 11.1.1.21 + username: tox + key: + from_secret: rsa_key + port: 22 + target: ~/ + source: tox.tar.gz - name: ssh image: appleboy/drone-ssh @@ -35,6 +56,13 @@ steps: - echo "Hello World" - mkdir ~/test + +# server: +# host: 11.1.1.21 +# user: tox +# ssh_key: +# from_secret: rsa_key + # - name: build # commands: # - cd src/