test new build
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-12-28 15:30:58 +11:00
parent ca39234f12
commit 6f47262336
5 changed files with 374 additions and 10 deletions

View File

@@ -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