2019-02-14 13:54:08 +01:00
|
|
|
workspace:
|
|
|
|
base: /go
|
|
|
|
path: src/gitbase.de/apairon/mark2web
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
build:
|
|
|
|
image: golang:latest
|
2019-02-14 14:02:24 +01:00
|
|
|
environment:
|
|
|
|
- CGO_ENABLED=0
|
2019-02-14 13:54:08 +01:00
|
|
|
commands:
|
|
|
|
- go build -v
|
|
|
|
|
|
|
|
testrun:
|
|
|
|
image: alpine
|
|
|
|
commands:
|
2019-02-14 13:56:30 +01:00
|
|
|
- ls -la
|
2019-02-14 13:54:08 +01:00
|
|
|
- ./mark2web -in example -out html -create -logLevel debug
|
2019-02-14 14:21:17 +01:00
|
|
|
|
|
|
|
build_docker:
|
|
|
|
image: docker
|
|
|
|
commands:
|
|
|
|
- docker build -t apairon/mark2web .
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
when:
|
|
|
|
branch: master
|
|
|
|
event: push
|