parent
f2086db921
commit
abce609618
@ -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:
|
||||
|
2
build.sh
2
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'`"
|
||||
|
Loading…
Reference in New Issue
Block a user