From 5647ba0611d2359ddff1ad8ddf1a5f044993bcaa Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 21 Feb 2016 10:38:54 +0100 Subject: [PATCH 1/6] Added all task as first task to makefile --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3a28234..6f50154 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: clean deps fmt vet test docker +.PHONY: all clean deps fmt vet test docker EXECUTABLE ?= drone-webhook IMAGE ?= plugins/$(EXECUTABLE) @@ -7,6 +7,8 @@ CI_BUILD_NUMBER ?= 0 LDFLAGS = -X "main.buildDate=$(shell date -u '+%Y-%m-%d %H:%M:%S %Z')" PACKAGES = $(shell go list ./... | grep -v /vendor/) +all: deps build test + clean: go clean -i ./... From 1e25bfea908310fbaf092cb3fe46d14a2a1cd06a Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 21 Feb 2016 10:43:09 +0100 Subject: [PATCH 2/6] Removed unused CI_BUILD_NUMBER from makefile --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 6f50154..305d679 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,6 @@ EXECUTABLE ?= drone-webhook IMAGE ?= plugins/$(EXECUTABLE) -CI_BUILD_NUMBER ?= 0 LDFLAGS = -X "main.buildDate=$(shell date -u '+%Y-%m-%d %H:%M:%S %Z')" PACKAGES = $(shell go list ./... | grep -v /vendor/) From 5ac45ceff9bc30cb42a7c1be2db241bcf5976f5e Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 21 Feb 2016 11:06:41 +0100 Subject: [PATCH 3/6] Make the builds reproducable based on commit sha --- Makefile | 3 ++- main.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 305d679..54eba0f 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,9 @@ EXECUTABLE ?= drone-webhook IMAGE ?= plugins/$(EXECUTABLE) +COMMIT ?= $(shell git rev-parse --short HEAD) -LDFLAGS = -X "main.buildDate=$(shell date -u '+%Y-%m-%d %H:%M:%S %Z')" +LDFLAGS = -X "main.buildCommit=$(COMMIT)" PACKAGES = $(shell go list ./... | grep -v /vendor/) all: deps build test diff --git a/main.go b/main.go index 253e839..d861248 100644 --- a/main.go +++ b/main.go @@ -20,11 +20,11 @@ const ( ) var ( - buildDate string + buildCommit string ) func main() { - fmt.Printf("Drone Webhook Plugin built at %s\n", buildDate) + fmt.Printf("Drone Webhook Plugin built from %s\n", buildCommit) system := drone.System{} repo := drone.Repo{} From e0b53c63eab7fa2ef98f46a6b0ea5cafb660e3b2 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 21 Feb 2016 11:20:01 +0100 Subject: [PATCH 4/6] Updated maintainers file, added names and athieriot --- MAINTAINERS | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a63ad47..0ecaf19 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4,6 +4,8 @@ email = "brad@drone.io" login = "bradrydzewski" [people.Bugagazavr] + name = "Kirill" + email = "" login = "Bugagazavr" [people.donny-dont] name = "Don Olmstead" @@ -23,9 +25,22 @@ login = "nlf" [people.tboerger] name = "Thomas Boerger" - email = "" + email = "thomas@webhippie.de" login = "tboerger" + [people.athieriot] + name = "Aurélien Thieriot" + email = "a.thieriot@gmail.com" + login = "athieriot" [org] [org.core] - people = ["bradrydzewski", "Bugagazavr", "donny-dont", "jackspirou", "msteinert", "nlf", "tboerger"] + people = [ + "bradrydzewski", + "Bugagazavr", + "donny-dont", + "jackspirou", + "msteinert", + "nlf", + "tboerger", + "athieriot" + ] From 6fb498194da8686c554e3a4deda437258b54d699 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 21 Feb 2016 11:38:18 +0100 Subject: [PATCH 5/6] Updated gitignore to respect also coverage.out --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 03e798f..b22c5d9 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ _testmain.go *.test *.prof +coverage.out drone-webhook From 437927cb2d11b2f3bb5ea615c7101f6bff9a455b Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Sun, 21 Feb 2016 12:30:26 +0100 Subject: [PATCH 6/6] Reference to DOCS.md from README.md for usage information --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f903ee6..1d98e58 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Coverage Status](https://aircover.co/badges/drone-plugins/drone-webhook/coverage.svg)](https://aircover.co/drone-plugins/drone-webhook) [![](https://badge.imagelayers.io/plugins/drone-webhook:latest.svg)](https://imagelayers.io/?images=plugins/drone-webhook:latest 'Get your own badge on imagelayers.io') -Drone plugin to send build status notifications via Webhook +Drone plugin to send build status notifications via Webhook. For the usage information and a listing of the available options please take a look at [the docs](DOCS.md). ## Binary