Skip to content

Commit

Permalink
fix releaser dockerfile (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikykun authored Sep 21, 2023
1 parent 3ba5a5a commit 4719bf1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ COPY pkg/ pkg/
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64} go build -a -o manager main.go

FROM alpine:3.17
RUN mkdir /webhook-certs
WORKDIR /
COPY --from=builder /workspace/manager .

Expand Down
2 changes: 1 addition & 1 deletion pkg/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func generateSelfSignedCert(caCert *x509.Certificate, caKey crypto.Signer, dnsNa

func ensureWebhookCert(certDir string, tlsKey, tlsCert []byte) error {
if _, err := os.Stat(certDir); os.IsNotExist(err) {
err := os.MkdirAll(certDir, 0755)
err := os.MkdirAll(certDir, 0777)
if err != nil {
return err
}
Expand Down
1 change: 0 additions & 1 deletion releaser.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ FROM gcr.io/distroless/static:nonroot
WORKDIR /

COPY manager /manager
USER 65532:65532

ENTRYPOINT ["/manager"]

0 comments on commit 4719bf1

Please sign in to comment.