mark2web/.drone.yml

100 lines
2.0 KiB
YAML
Raw Normal View History

2019-02-14 13:54:08 +01:00
workspace:
base: /go
path: src/gitbase.de/apairon/mark2web
pipeline:
2019-02-20 09:02:54 +01:00
build_mark2web_linux:
2019-02-14 13:54:08 +01:00
image: golang:latest
2019-02-20 09:02:54 +01:00
environment:
- CGO_ENABLED=0
- GOOS=linux
- GOARCH=amd64
2019-02-14 13:54:08 +01:00
commands:
2019-02-20 11:21:21 +01:00
- git fetch --tags
2019-02-18 13:12:18 +01:00
- ./build.sh
2019-02-14 13:54:08 +01:00
2019-02-20 09:12:25 +01:00
test_example:
2019-02-14 13:54:08 +01:00
image: alpine
commands:
2019-02-20 09:55:17 +01:00
- ./dist/mark2web-`cat VERSION`-linux-amd64 -version
- ./dist/mark2web-`cat VERSION`-linux-amd64 -in example -out example_out -create -logLevel debug
2019-02-20 09:12:25 +01:00
build_mark2web_freebsd:
image: golang:latest
environment:
- CGO_ENABLED=0
- GOOS=freebsd
- GOARCH=amd64
commands:
- ./build.sh
when:
2019-02-20 10:57:48 +01:00
branch: [ master ]
event: [ push, tag ]
2019-02-20 09:12:25 +01:00
2019-02-20 09:54:10 +01:00
build_mark2web_darwin:
image: golang:latest
environment:
- CGO_ENABLED=0
- GOOS=darwin
- GOARCH=amd64
commands:
- ./build.sh
when:
2019-02-20 10:57:48 +01:00
branch: [ master ]
event: [ push]
2019-02-20 09:54:10 +01:00
2019-02-20 09:12:25 +01:00
build_mark2web_windows:
image: golang:latest
environment:
- CGO_ENABLED=0
- GOOS=windows
- GOARCH=amd64
- FILEEXT=.exe
commands:
- ./build.sh
when:
2019-02-20 10:57:48 +01:00
branch: [ master ]
event: [ push, tag ]
2019-02-14 14:21:17 +01:00
build_docker:
image: docker
commands:
2019-02-20 09:59:03 +01:00
- cp dist/mark2web-`cat VERSION`-linux-amd64 mark2web
2019-02-14 14:21:17 +01:00
- docker build -t apairon/mark2web .
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
2019-02-20 10:57:48 +01:00
branch: [ master ]
event: [ push, tag ]
2019-02-20 09:12:25 +01:00
deploy_website:
image: apairon/mark2web:latest
commands:
- /mark2web -version
- /mark2web -in website -out html -create -logLevel debug
when:
2019-02-20 10:57:48 +01:00
branch: [ master ]
event: [ push, tag ]
2019-02-20 09:12:25 +01:00
prepare_release:
image: apairon/mark2web:latest
commands:
- gzip dist/*
- ls -la dist/
2019-02-20 10:39:19 +01:00
when:
2019-02-20 10:57:48 +01:00
event: [ tag ]
2019-02-20 09:12:25 +01:00
2019-02-20 09:54:10 +01:00
gitea_relase:
image: plugins/gitea-release
2019-02-20 10:57:48 +01:00
secrets: [ plugin_api_key ]
2019-02-20 09:54:10 +01:00
base_url: https://gitbase.de
files:
- dist/*
title: VERSION
note: RELEASE
checksum:
- md5
- sha256
when:
2019-02-20 10:57:48 +01:00
event: [ tag ]