add hidden files

This commit is contained in:
2024-07-25 11:08:39 +10:00
parent 225880a13c
commit 84fb644fc8
3 changed files with 40 additions and 0 deletions

10
.drone.sh Normal file
View File

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

28
.drone.yml Normal file
View File

@@ -0,0 +1,28 @@
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-sftp-deploy
image: hypervtechnics/drone-sftp
settings:
host: deft.dell.com
username:
from_secret: DELLFTP_USER
password:
from_secret: DELLFTP_PASS
port: 22
source: ./
filter: sso-query*
clean: false
target: /
overwrite: true
verbose: true

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
sso-query
log.txt