From d276c398dadec02faa884adbe48cb9e85efee2ac Mon Sep 17 00:00:00 2001 From: James Mills Date: Wed, 14 Jul 2021 22:30:01 +1000 Subject: [PATCH] Add Drone CI config --- .drone.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..361764a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,31 @@ +--- +kind: pipeline +name: default + +steps: + - name: build & run tests + image: r.mills.io/prologic/golang-alpine + volumes: + - name: gomodcache + path: /go/pkg/mod/cache + privileged: true + environment: + GOPROXY: https://goproxy.mills.io + commands: + - make build + - make test + + - name: notify + image: plugins/webhook + settings: + urls: + - https://msgbus.mills.io/ci.mills.io + when: + status: + - success + - failure + +volumes: + - name: gomodcache + host: + path: /var/lib/cache/go