From 096e219339877c7277ad5eafa4a590e7dde99379 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 27 Jun 2019 14:12:13 +0200 Subject: [PATCH] Add drone automation --- .drone.yml | 29 +++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..12dd4fb --- /dev/null +++ b/.drone.yml @@ -0,0 +1,29 @@ +kind: pipeline +name: default + +steps: + - name: build_draftbot + image: golang + commands: + - CGO_ENABLED=0 GOPROXY=https://modules.fromouter.space go build -o release/draftbot git.fromouter.space/mcg/mlp-server-tools/draftbot + volumes: + - name: gopath + path: /go + + - name: publish_draftbot + image: plugins/docker + settings: + auto_tag: true + dockerfile: Dockerfile.publish + build_args: MODULE_PATH=draftbot + repo: hamcha/draftbot + target: final + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + event: + - push + - tag + branch: master \ No newline at end of file diff --git a/README.md b/README.md index 928a961..a6cd46e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Server tools +[![Build Status](https://drone.zyg.ovh/api/badges/mcg/mlp-server-tools/status.svg)](https://drone.zyg.ovh/mcg/mlp-server-tools) + Tools and services needed for the MCG backend to work. ## Inside this repository