Изменил(а) на '.drone.yml'

Upgrated deploy
master
Alex 1 year ago
parent 5b376e1813
commit d079442e6a
  1. 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

Loading…
Cancel
Save