From abce609618ebbe8f5b0178b10937da2747a4b837 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Mon, 18 Feb 2019 13:12:18 +0100 Subject: [PATCH] drone using build.sh --- .drone.yml | 5 ++--- build.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 66152c5..004649e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: diff --git a/build.sh b/build.sh index 614657b..4a472c0 100755 --- a/build.sh +++ b/build.sh @@ -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'`"