init
All checks were successful
release-tag / release-image (push) Successful in 2m3s

This commit is contained in:
2026-05-04 22:25:50 +02:00
parent be81c2bf92
commit 270c13af5b
21 changed files with 1839 additions and 1 deletions

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM golang:1.25.3 AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /out/patchping ./cmd/releasewatcher
#FROM gcr.io/distroless/static:nonroot
FROM alpine:3.22.2
WORKDIR /
RUN mkdir /data
VOLUME ["/data"]
EXPOSE 8080
ENV RW_ADDR=":8080" \
RW_DATA="/data/releasewatcher.json" \
RW_ADMIN_EMAIL="admin@example.local" \
RW_ADMIN_PASSWORD="admin12345" \
RW_SECRET="change-me-in-production" \
RW_DISCORD_TOKEN="" \
RW_DISCORD_APP_ID="" \
RW_DISCORD_GUILD_ID="" \
RW_DISCORD_CATEGORY_ID="" \
RW_DISCORD_CATEGORY_NAME="" \
RW_DISCORD_RELEASE_MENTION="@here" \
RW_DISCORD_SEND_DMS="false"
COPY --from=build /out/patchping /patchping
ENTRYPOINT ["/patchping"]