Fixed deploy pipeline
Build and Deploy / build-and-deploy (push) Failing after 2m51s

This commit is contained in:
2026-05-19 23:27:37 +03:00
parent e6096c98fa
commit e6a00ca9f0
6 changed files with 108 additions and 57 deletions
+3 -3
View File
@@ -1,12 +1,12 @@
FROM golang:1.25-alpine AS builder
FROM golang:1.26-bookworm AS backend
WORKDIR /app
COPY infra/webhook/ .
RUN go mod download && \
CGO_ENABLED=0 GOOS=linux go build -o webhook .
FROM alpine:3.19
RUN apk add --no-cache docker-cli ca-certificates
FROM scratch
COPY --from=builder /app/webhook /webhook
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
EXPOSE 9001
ENTRYPOINT ["/webhook"]