This commit is contained in:
9
.drone.sh
Normal file
9
.drone.sh
Normal 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
27
.drone.yml
Normal 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$
|
Reference in New Issue
Block a user