From 0014d46df025c965a1eefa6d7b88f9e1ffcaf9b3 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Mon, 31 Jan 2022 09:13:40 +0100 Subject: [PATCH] ci: adds woodpecker config --- .woodpacker.yml | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .woodpacker.yml diff --git a/.woodpacker.yml b/.woodpacker.yml new file mode 100644 index 0000000..698ef7d --- /dev/null +++ b/.woodpacker.yml @@ -0,0 +1,52 @@ +pipeline: + restore-cache: + image: meltwater/drone-cache + settings: + backend: filesystem + restore: true + cache_key: volume + archive_format: gzip + mount: + - /usr + volumes: + - /tmp/drone-cache:/tmp/cache + install-deps: + image: golang:1.17-alpine-alpine + commands: + - apk add --no-cache build-base git + tags: + image: alpine/git + commands: + - git fetch --tags + lint: + image: golang:1.17-alpine + commands: + - make lint + test: + image: golang:1.17-alpine + commands: + - make test + build: + image: golang:1.17-alpine + commands: + - make build + release: + image: golang:1.17-alpine + commands: + - make release + secrets: + - gitea_token + when: + event: + - tag + rebuild-cache: + image: meltwater/drone-cache + settings: + backend: filesystem + rebuild: true + cache_key: volume + archive_format: gzip + mount: + - /usr + volumes: + - /tmp/drone-cache:/tmp/cache