This commit is contained in:
11
.drone.sh
11
.drone.sh
@@ -5,16 +5,11 @@ export CGO_ENABLED=0
|
|||||||
|
|
||||||
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
|
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
|
||||||
echo $now
|
echo $now
|
||||||
pwd
|
#pwd
|
||||||
ls -lah ~
|
#ls -lah ~
|
||||||
go env
|
#go env
|
||||||
go env GOPATH
|
|
||||||
#GOCACHE=/tmp/cache
|
|
||||||
#export GOCACHE
|
|
||||||
#go env GOCACHE
|
|
||||||
echo "build commences"
|
echo "build commences"
|
||||||
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt
|
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o smt
|
||||||
echo "build complete"
|
echo "build complete"
|
||||||
sha256sum smt > smt_checksum.txt
|
sha256sum smt > smt_checksum.txt
|
||||||
ls -lah
|
ls -lah
|
||||||
find .
|
|
@@ -15,6 +15,8 @@ type User struct {
|
|||||||
RoleId int `db:"RoleId" json:"roleId"`
|
RoleId int `db:"RoleId" json:"roleId"`
|
||||||
UserName string `db:"UserName" json:"userName"`
|
UserName string `db:"UserName" json:"userName"`
|
||||||
Password string `db:"Password" json:"-"`
|
Password string `db:"Password" json:"-"`
|
||||||
|
LdapUser bool `db:"LdapUser" json:"ldapUser"`
|
||||||
|
LdapDn string `db:"LdapDN" json:"ldapDn"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserRole struct {
|
type UserRole struct {
|
||||||
|
Reference in New Issue
Block a user