Made autodeploy pipeline
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
FROM golang:1.25-alpine AS builder
|
||||
|
||||
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
|
||||
COPY --from=builder /app/webhook /webhook
|
||||
EXPOSE 9001
|
||||
ENTRYPOINT ["/webhook"]
|
||||
Reference in New Issue
Block a user