File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ archives:
4646 - src : CHANGELOG*
4747dockers :
4848 - id : external-dns-stackit-webhook
49- use : buildx
49+ use : docker
5050 image_templates :
5151 - " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}"
5252 - " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest"
Original file line number Diff line number Diff line change 1- FROM golang:1.20 as buildstage
1+ FROM gcr.io/distroless/static-debian11:nonroot
22
3- # ca-certificates: for downloading go libraries from the internet
4- # build-essential: for building our project (make)
5- # curl: for downloading third party tools
6- RUN apt-get update && \
7- apt-get install --yes --no-install-recommends ca-certificates build-essential curl && \
8- rm -rf /var/lib/apt/lists/*
9-
10- WORKDIR /build
11- COPY . .
12-
13- RUN CGO_ENABLED=0 go build -ldflags "-s -w" -o ./bin/external-dns-stackit-webhook -v cmd/webhook/main.go
14-
15- FROM gcr.io/distroless/static-debian11
16-
17- COPY --from=buildstage /build/bin/external-dns-stackit-webhook /external-dns-stackit-webhook
3+ COPY external-dns-stackit-webhook /external-dns-stackit-webhook
184
195ENTRYPOINT ["/external-dns-stackit-webhook" ]
You can’t perform that action at this time.
0 commit comments