parent
97432a5daf
commit
7b124a48af
31
.drone.yml
31
.drone.yml
@ -15,9 +15,8 @@ pipeline:
|
|||||||
test_example:
|
test_example:
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- ls -la
|
- ./dist/mark2web-`cat version`-linux-amd64 -version
|
||||||
- ./dist/mark2web-linux-amd64 -version
|
- ./dist/mark2web-`cat version`-linux-amd64 -in example -out example_out -create -logLevel debug
|
||||||
- ./dist/mark2web-linux-amd64 -in example -out example_out -create -logLevel debug
|
|
||||||
|
|
||||||
build_mark2web_freebsd:
|
build_mark2web_freebsd:
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
@ -31,6 +30,18 @@ pipeline:
|
|||||||
branch: master
|
branch: master
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
|
build_mark2web_darwin:
|
||||||
|
image: golang:latest
|
||||||
|
environment:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
- GOOS=darwin
|
||||||
|
- GOARCH=amd64
|
||||||
|
commands:
|
||||||
|
- ./build.sh
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: push
|
||||||
|
|
||||||
build_mark2web_windows:
|
build_mark2web_windows:
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
environment:
|
environment:
|
||||||
@ -57,7 +68,6 @@ pipeline:
|
|||||||
deploy_website:
|
deploy_website:
|
||||||
image: apairon/mark2web:latest
|
image: apairon/mark2web:latest
|
||||||
commands:
|
commands:
|
||||||
- ls -la
|
|
||||||
- /mark2web -version
|
- /mark2web -version
|
||||||
- /mark2web -in website -out html -create -logLevel debug
|
- /mark2web -in website -out html -create -logLevel debug
|
||||||
when:
|
when:
|
||||||
@ -67,7 +77,18 @@ pipeline:
|
|||||||
prepare_release:
|
prepare_release:
|
||||||
image: apairon/mark2web:latest
|
image: apairon/mark2web:latest
|
||||||
commands:
|
commands:
|
||||||
- ls -la dist/
|
|
||||||
- gzip dist/*
|
- gzip dist/*
|
||||||
- ls -la dist/
|
- ls -la dist/
|
||||||
|
|
||||||
|
gitea_relase:
|
||||||
|
image: plugins/gitea-release
|
||||||
|
base_url: https://gitbase.de
|
||||||
|
files:
|
||||||
|
- dist/*
|
||||||
|
title: VERSION
|
||||||
|
note: RELEASE
|
||||||
|
checksum:
|
||||||
|
- md5
|
||||||
|
- sha256
|
||||||
|
when:
|
||||||
|
event: tag
|
8
RELEASE.md
Normal file
8
RELEASE.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Dies ist das erste Release von *mark2web*.
|
||||||
|
In diesem Release werden folgende Features unterstützt:
|
||||||
|
|
||||||
|
- Verabeitung von Markdown-Dateien für Website-Inhalte
|
||||||
|
- Umwandlung der Ordnerstruktur des `content`-Verzeichnis in Navigationsbäume
|
||||||
|
- Verarbeitung von Pongo2-Templates mit dem Inhalt zur finalen Website
|
||||||
|
- Kopieren der Assets ins Zielverzeichnis
|
||||||
|
- Anpassung des Asset-Pfads in den HTML-Dateien
|
2
build.sh
2
build.sh
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
go build -v -ldflags "-X main.Version=`cat VERSION` -X main.GitHash=`git rev-parse HEAD` -X main.BuildTime=`date -u '+%Y-%m-%d_%I:%M:%S%p'`" -o dist/mark2web-${GOOS}-${GOARCH}${FILEEXT}
|
go build -v -ldflags "-X main.Version=`cat VERSION` -X main.GitHash=`git rev-parse HEAD` -X main.BuildTime=`date -u '+%Y-%m-%d_%I:%M:%S%p'`" -o dist/mark2web-`cat VERSION`-${GOOS}-${GOARCH}${FILEEXT}
|
||||||
|
Loading…
Reference in New Issue
Block a user