Изменил(а) на '.drone.yml'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Upgrated deploy
This commit is contained in:
10
.drone.yml
10
.drone.yml
@@ -7,7 +7,7 @@ clone:
|
|||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
- name: Clone repo
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "git.santic-zombie.ru:11.1.1.20"
|
- "git.santic-zombie.ru:11.1.1.20"
|
||||||
@@ -17,7 +17,7 @@ steps:
|
|||||||
- git checkout $DRONE_COMMIT
|
- git checkout $DRONE_COMMIT
|
||||||
- tar -czpf tox.tar.gz *
|
- tar -czpf tox.tar.gz *
|
||||||
|
|
||||||
- name: prepare source
|
- name: Prepare to deploy
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
@@ -32,7 +32,7 @@ steps:
|
|||||||
- if [ ! -d ~/tox_bot ]; then mkdir ~/tox_bot; fi
|
- if [ ! -d ~/tox_bot ]; then mkdir ~/tox_bot; fi
|
||||||
- if [ -f ~/tox_bot/echo_bot ]; then rm ~/tox_bot/echo_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
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
@@ -44,7 +44,7 @@ steps:
|
|||||||
target: ~/
|
target: ~/
|
||||||
source: tox.tar.gz
|
source: tox.tar.gz
|
||||||
|
|
||||||
- name: build
|
- name: Build, deploy, clean
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host:
|
host:
|
||||||
@@ -60,7 +60,7 @@ steps:
|
|||||||
- cd ~/tox_source/src
|
- cd ~/tox_source/src
|
||||||
- gcc -o echo_bot tox_bot.c commands.c misc.c -std=gnu99 -lsodium -I /usr/local/include/ -ltoxcore -lconfig
|
- 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 echo_bot ~/tox_bot
|
||||||
- cp ../{bot.cfg,masterkeys.txt} ~/tox_bot
|
- cp -f ../bot.cfg ../masterkeys.txt ~/tox_bot/
|
||||||
- ls -lta ~/tox_bot
|
- ls -lta ~/tox_bot
|
||||||
- rm -rfd ~/tox_source
|
- rm -rfd ~/tox_source
|
||||||
- rm ~/tox.tar.gz
|
- rm ~/tox.tar.gz
|
||||||
|
|||||||
Reference in New Issue
Block a user