From 5cf07601e426d39499710fdcb85e1baf971c6a07 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 10 May 2024 09:16:26 -0500 Subject: [PATCH] Initial commit --- Containerfile | 16 ++++++++++++++++ Jenkinsfile | 1 + 2 files changed, 17 insertions(+) create mode 100644 Containerfile create mode 100644 Jenkinsfile diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..f56929b --- /dev/null +++ b/Containerfile @@ -0,0 +1,16 @@ +FROM docker.io/library/golang:1.21-alpine AS build + +RUN apk add --no-cache git + +WORKDIR /go/alertmanager-ntfy + +RUN git init && git remote add origin https://github.com/alexbakker/alertmanager-ntfy && git fetch --depth=1 origin 4164649d0ed1c7246d9719cd95d1bc78a51083fa && git checkout -f FETCH_HEAD +RUN go install ./... + +FROM scratch + +COPY --from=build /go/bin/alertmanager-ntfy / + +ENV PATH=/ + +ENTRYPOINT ["alertmanager-ntfy"] diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..c187df7 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1 @@ +buildContainerImage2()