parent
f2086db921
commit
abce609618
@ -5,15 +5,14 @@ workspace:
|
|||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
environment:
|
|
||||||
- CGO_ENABLED=0
|
|
||||||
commands:
|
commands:
|
||||||
- go build -v
|
- ./build.sh
|
||||||
|
|
||||||
testrun:
|
testrun:
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- ls -la
|
- ls -la
|
||||||
|
- ./mark2web -version
|
||||||
- ./mark2web -in example -out html -create -logLevel debug
|
- ./mark2web -in example -out html -create -logLevel debug
|
||||||
|
|
||||||
build_docker:
|
build_docker:
|
||||||
|
2
build.sh
2
build.sh
@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/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