add drone setup
Some checks reported errors
continuous-integration/drone Build was killed

This commit is contained in:
2023-05-23 10:44:35 +10:00
parent 98b0423c7a
commit 9c8e141327
2 changed files with 36 additions and 0 deletions

9
.drone.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
echo $now
echo "build commences"
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o events
echo "build complete"
sha256sum events > events_checksum.txt
ls -lah

27
.drone.yml Normal file
View File

@@ -0,0 +1,27 @@
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:
- sh ./.drone.sh
- 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: ^events$,^events_checksum.txt$