diff --git a/webhook/Dockerfile b/webhook/Dockerfile new file mode 100644 index 0000000..e133222 --- /dev/null +++ b/webhook/Dockerfile @@ -0,0 +1,8 @@ +# +# Dockerfile for webhook +# + +FROM scratch +COPY webhook / +ENTRYPOINT ["/webhook"] +CMD ["-help"] diff --git a/webhook/Makefile b/webhook/Makefile new file mode 100644 index 0000000..cc5d4ad --- /dev/null +++ b/webhook/Makefile @@ -0,0 +1,13 @@ +.PHONY: webhook + +export GOPATH = /tmp/go +export GOOS = linux +export GOARCH = amd64 + +webhook: + go get -d github.com/adnanh/webhook + go build --ldflags '-s -extldflags "-static"' -i -o webhook github.com/adnanh/webhook + +clean: + rm -rf $(GOPATH) + rm -f webhook diff --git a/webhook/README.md b/webhook/README.md new file mode 100644 index 0000000..c5ac601 --- /dev/null +++ b/webhook/README.md @@ -0,0 +1,8 @@ +webhook +======= + +[webhook][1] is a lightweight configurable tool written in Go, that allows you +to easily create HTTP endpoints (hooks) on your server, which you can use to +execute configured commands. + +[1]: https://github.com/adnanh/webhook diff --git a/webhook/webhook b/webhook/webhook new file mode 100755 index 0000000..77bc5ae Binary files /dev/null and b/webhook/webhook differ