Fix ci
Some checks failed
Deploy and Push Docker Image / BuildAndPush (push) Failing after 34s

This commit is contained in:
2025-06-19 14:04:38 +02:00
parent 64f955c4a1
commit 43c65c4892
2 changed files with 9 additions and 5 deletions

View File

@ -6,10 +6,14 @@ WORKDIR /app
# Copy source code
COPY . .
# Build the Go binary statically
RUN CGO_ENABLED=0 GOOS=linux go build -o weewoowebhook /app/cmd/wee_woo_webhook/main.go
# Build statically for Linux
ARG TARGETOS
ARG TARGETARCH
FROM scratch
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
go build -a -installsuffix cgo -o weewoowebhook /app/cmd/wee_woo_webhook/main.go
FROM alpine
# Copy statically built binary from the builder
COPY --from=builder /app/weewoowebhook /weewoowebhook