Изменил(а) на '.drone.yml'
Some checks failed
continuous-integration/drone/push Build encountered an error
Some checks failed
continuous-integration/drone/push Build encountered an error
This commit is contained in:
56
.drone.yml
56
.drone.yml
@@ -1,25 +1,46 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: Test
|
name: Building
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
disable: true
|
disable: true
|
||||||
|
|
||||||
# server:
|
|
||||||
# host: 11.1.1.21
|
|
||||||
# user: tox
|
|
||||||
# ssh_key:
|
|
||||||
# from_secret: rsa_key
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: Show Environment
|
- name: clone
|
||||||
# commands:
|
image: alpine/git
|
||||||
# - whoami
|
extra_hosts:
|
||||||
# - pwd
|
- "git.santic-zombie.ru:11.1.1.20"
|
||||||
# - hostname
|
commands:
|
||||||
# - ls
|
- ping -c 1 git.santic-zombie.ru
|
||||||
# - ls -lta ~/
|
- 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
|
- name: ssh
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
@@ -35,6 +56,13 @@ steps:
|
|||||||
- echo "Hello World"
|
- echo "Hello World"
|
||||||
- mkdir ~/test
|
- mkdir ~/test
|
||||||
|
|
||||||
|
|
||||||
|
# server:
|
||||||
|
# host: 11.1.1.21
|
||||||
|
# user: tox
|
||||||
|
# ssh_key:
|
||||||
|
# from_secret: rsa_key
|
||||||
|
|
||||||
# - name: build
|
# - name: build
|
||||||
# commands:
|
# commands:
|
||||||
# - cd src/
|
# - cd src/
|
||||||
|
|||||||
Reference in New Issue
Block a user