Added the new webhook container

This commit is contained in:
2022-04-09 14:38:30 +02:00
parent c3f9788bfe
commit cea2332dc1
2 changed files with 16 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
repository: [docker2mqtt, gandi, go-ipfs, http-tunnel, ipfs-cluster, mopidy, piwigo-souvenirs, restic-auto, restic-rest, shairport-sync, slack-eraser, snapserver, telegraf]
repository: [webhook, docker2mqtt, gandi, go-ipfs, http-tunnel, ipfs-cluster, mopidy, piwigo-souvenirs, restic-auto, restic-rest, shairport-sync, slack-eraser, snapserver, telegraf]
steps:
- name: Checkout

15
webhook/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM golang:alpine3.11 AS build
WORKDIR /go/src/github.com/adnanh/webhook
RUN apk add --update -t build-deps curl libc-dev gcc libgcc jq \
&& DOWNLOAD_URL=$(curl -s https://api.github.com/repos/adnanh/webhook/releases/latest | jq -r '.tarball_url') \
&& curl -L --silent -o webhook.tgz ${DOWNLOAD_URL} \
&& tar -xzf webhook.tgz --strip 1 \
&& go get -d \
&& go build -o /usr/local/bin/webhook
FROM alpine:3.11
COPY --from=build /usr/local/bin/webhook /usr/local/bin/webhook
WORKDIR /etc/webhook
VOLUME ["/etc/webhook"]
EXPOSE 9000
ENTRYPOINT ["/usr/local/bin/webhook"]