File tree 2 files changed +3
-17
lines changed
2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ archives:
46
46
- src : CHANGELOG*
47
47
dockers :
48
48
- id : external-dns-stackit-webhook
49
- use : buildx
49
+ use : docker
50
50
image_templates :
51
51
- " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}"
52
52
- " {{ .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
2
2
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
18
4
19
5
ENTRYPOINT ["/external-dns-stackit-webhook" ]
You can’t perform that action at this time.
0 commit comments