drone using build.sh
Some checks failed
the build failed

This commit is contained in:
Sebastian Frank 2019-02-18 13:12:18 +01:00
parent f2086db921
commit abce609618
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3
2 changed files with 3 additions and 4 deletions

View File

@ -5,15 +5,14 @@ workspace:
pipeline:
build:
image: golang:latest
environment:
- CGO_ENABLED=0
commands:
- go build -v
- ./build.sh
testrun:
image: alpine
commands:
- ls -la
- ./mark2web -version
- ./mark2web -in example -out html -create -logLevel debug
build_docker:

View File

@ -1,3 +1,3 @@
#!/bin/sh
CGO_ENABLED=1 go build -ldflags "-X main.Version=`git describe --tags --long` -X main.GitHash=`git rev-parse HEAD` -X main.BuildTime=`date -u '+%Y-%m-%d_%I:%M:%S%p'`"
CGO_ENABLED=1 go build -v -ldflags "-X main.Version=`git describe --tags --long` -X main.GitHash=`git rev-parse HEAD` -X main.BuildTime=`date -u '+%Y-%m-%d_%I:%M:%S%p'`"