Skip to content

Commit 2b5c31d

Browse files
author
CodingWizKid
committed
adjust release
1 parent f3a5e3b commit 2b5c31d

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

.goreleaser.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ archives:
4646
- src: CHANGELOG*
4747
dockers:
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"

Dockerfile

+2-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
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

195
ENTRYPOINT ["/external-dns-stackit-webhook"]

0 commit comments

Comments
 (0)