Files
smt/.drone.yml
Nathan Coad 6f47262336
Some checks failed
continuous-integration/drone/push Build is failing
test new build
2023-12-28 15:30:58 +11:00

62 lines
1.5 KiB
YAML

kind: pipeline
type: docker
name: default
# Docs at https://docs.drone.io/pipeline/exec/overview/
# Also see https://github.com/harness/drone-cli/blob/master/.drone.yml
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
environment:
FTP_USERNAME:
from_secret: FTP_USERNAME
FTP_PASSWORD:
from_secret: FTP_PASSWORD
PLUGIN_HOSTNAME: ftp.emc.com:21
PLUGIN_SECURE: false
PLUGIN_VERIFY: false
PLUGIN_CHMOD: false
#PLUGIN_DEBUG: false
PLUGIN_INCLUDE: ^smt$,^smt_checksum.txt$
PLUGIN_EXCLUDE: ^\.git/$,^\controllers/$,^\middlewares/$,^\models/$,^\utils/$