From c77f9dc5189b1cec49bb4ea20ed97c8f96b142d4 Mon Sep 17 00:00:00 2001 From: Marvin Preuss Date: Fri, 28 Jan 2022 12:47:08 +0100 Subject: [PATCH] ci: uses woodpecker instead of drone --- .drone.yml | 83 ------------------------------------------------- .woodpecker.yml | 26 ++++++++++++++++ 2 files changed, 26 insertions(+), 83 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 9259138..0000000 --- a/.drone.yml +++ /dev/null @@ -1,83 +0,0 @@ -kind: pipeline -name: default -type: docker -golang-image: &golang-image golang:1.17-alpine -gobin-volume: &gobin-volume - name: gobin - path: /go/bin -usr-volume: &usr-volume - name: usr - path: /usr -deps-command: &deps-command apk add build-base git -steps: -- name: tags - image: alpine/git - commands: - - git fetch --tags -- name: install-deps - image: *golang-image - volumes: - - *gobin-volume - - *usr-volume - commands: - - *deps-command -- name: lint - image: *golang-image - volumes: - - *gobin-volume - - *usr-volume - commands: - - make lint - depends_on: - - tags - - install-deps -- name: test - image: *golang-image - volumes: - - *gobin-volume - - *usr-volume - commands: - - make test - depends_on: - - install-deps - - tags - - lint -- name: build - image: *golang-image - volumes: - - *gobin-volume - - *usr-volume - commands: - - make build - depends_on: - - tags - - lint - - test - - install-deps - when: - event: - exclude: - - tag -- name: release - image: *golang-image - volumes: - - *gobin-volume - - *usr-volume - environment: - GITEA_TOKEN: - from_secret: gitea_token - commands: - - make release - depends_on: - - test - - lint - - tags - - install-deps - when: - event: - - tag -volumes: -- name: gobin - temp: {} -- name: usr - temp: {} diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..812335c --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,26 @@ +pipeline: + tags: + image: alpine/git + commands: + - git fetch --tags + lint: + image: golang:1.17 + commands: + - make lint + test: + image: golang:1.17 + commands: + - make test + build: + image: golang:1.17 + commands: + - make build + release: + image: golang:1.17 + commands: + - make release + secrets: + - gitea_token + when: + event: + - tag