mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-12 04:23:04 +02:00
add webhook
This commit is contained in:
parent
008dec4b5b
commit
48e3c6f377
8
webhook/Dockerfile
Normal file
8
webhook/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# Dockerfile for webhook
|
||||
#
|
||||
|
||||
FROM scratch
|
||||
COPY webhook /
|
||||
ENTRYPOINT ["/webhook"]
|
||||
CMD ["-help"]
|
13
webhook/Makefile
Normal file
13
webhook/Makefile
Normal file
@ -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
|
8
webhook/README.md
Normal file
8
webhook/README.md
Normal file
@ -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
|
BIN
webhook/webhook
Executable file
BIN
webhook/webhook
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user