This commit is contained in:
34
.drone.yml
34
.drone.yml
@@ -9,8 +9,42 @@ steps:
|
||||
- name: build
|
||||
image: golang
|
||||
commands:
|
||||
- go get -u github.com/gomarkdown/mdtohtml
|
||||
- mdtohtml README.md index.htm
|
||||
- sh ./.drone.sh
|
||||
|
||||
# Copy binary to test server
|
||||
- name: coadcorp-deploy
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host:
|
||||
- 10.63.39.130
|
||||
username: l075239
|
||||
password:
|
||||
from_secret: ssh_password
|
||||
port: 22
|
||||
command_timeout: 2m
|
||||
target: /home/l075239/smt/
|
||||
source:
|
||||
- smt
|
||||
- cbs_checksum.txt
|
||||
- test.env
|
||||
|
||||
# Start service
|
||||
- name: coadcorp-restart
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
- 10.63.39.130
|
||||
username: l075239
|
||||
password:
|
||||
from_secret: ssh_password
|
||||
port: 22
|
||||
command_timeout: 2m
|
||||
script:
|
||||
- sudo basc -c 'mv /home/l075239/smt/test.env /home/l075239/smt/.env'
|
||||
- sudo bash -c '/etc/init.d/cbs restart'
|
||||
|
||||
- name: dell-deploy
|
||||
# # https://github.com/cschlosser/drone-ftps/blob/master/README.md
|
||||
image: cschlosser/drone-ftps
|
||||
|
Reference in New Issue
Block a user