summaryrefslogtreecommitdiff
path: root/.drone.yml
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2022-11-08 08:06:55 +1000
committerJames Mills <prologic@shortcircuit.net.au>2022-11-08 08:06:55 +1000
commit0d32d37356bd05fb2a25d06cde10b2aee678c117 (patch)
tree652e5cd8986940704946efedfe1057d62d3a8f11 /.drone.yml
parentd4223a9ef70085df4330af881d93a93d7ccf07e0 (diff)
Add Drone CI
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..62a6d64
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,49 @@
+---
+kind: pipeline
+name: default
+
+steps:
+ - name: build-and-test
+ image: r.mills.io/prologic/golang-alpine:latest
+ commands:
+ - make deps
+ - make build
+ - make test
+
+ - name: build-image-push
+ image: plugins/kaniko
+ settings:
+ repo: prologic/yarnd
+ tags: latest
+ build_args:
+ - VERSION=edge
+ - COMMIT=${DRONE_COMMIT_SHA:0:8}
+ username:
+ from_secret: dockerhub_username
+ password:
+ from_secret: dockerhub_password
+ depends_on:
+ - build-and-test
+ when:
+ branch:
+ - master
+ event:
+ - push
+
+ - name: notify-irc
+ image: plugins/webhook
+ settings:
+ urls:
+ - https://msgbus.mills.io/ci.mills.io
+ when:
+ status:
+ - success
+ - failure
+
+trigger:
+ branch:
+ - master
+ event:
+ - tag
+ - push
+ - pull_request