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

test plugin
master
Alex 2 years ago
parent c8f89cc0d4
commit 6ff615778d
  1. 47
      .drone.yml

@ -1,22 +1,25 @@
--- ---
kind: pipeline kind: pipeline
type: ssh type: docker
name: Test name: Test
server: clone:
host: 11.1.1.21 disable: true
user: tox
ssh_key: # server:
from_secret: rsa_key # host: 11.1.1.21
# user: tox
# ssh_key:
# from_secret: rsa_key
steps: steps:
- name: Show Environment # - name: Show Environment
commands: # commands:
- whoami # - whoami
- pwd # - pwd
- hostname # - hostname
- ls # - ls
- ls -lta ~/ # - ls -lta ~/
- name: ssh - name: ssh
image: appleboy/drone-ssh image: appleboy/drone-ssh
@ -32,12 +35,12 @@ steps:
- echo "Hello World" - echo "Hello World"
- mkdir ~/test - mkdir ~/test
- name: build # - name: build
commands: # commands:
- cd src/ # - cd 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
- mkdir ~/tox_bot # - mkdir ~/tox_bot
- cp echo_bot ~/tox_bot # - cp echo_bot ~/tox_bot
- cp ../{bot.cfg,masterkeys.txt} ~/tox_bot # - cp ../{bot.cfg,masterkeys.txt} ~/tox_bot
- ls -lta ~/ # - ls -lta ~/
- sleep 15 # - sleep 15

Loading…
Cancel
Save