Skip to content

Commit

Permalink
chore(lint): add and fix hadolint
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski committed Dec 21, 2023
1 parent 3c8ce39 commit fde7ac4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .trunk/configs/.hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Following source doesn't work in most setups
ignored:
- SC1090
- SC1091
1 change: 1 addition & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins:

lint:
enabled:
- [email protected]
- [email protected]
- [email protected]
- git-diff-check
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM --platform=$BUILDPLATFORM golang:1.21 as builder
FROM --platform=$BUILDPLATFORM golang:1.21 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -18,7 +18,7 @@ COPY controllers/ controllers/
ARG TARGETOS
ARG TARGETARCH
ARG VERSION=dev
RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -trimpath \
RUN CGO_ENABLED=0 GOOS="$TARGETOS" GOARCH="$TARGETARCH" go build -trimpath \
-ldflags="-s -w -X github.com/aiven/aiven-operator/controllers.version=${VERSION}" \
-a -o manager main.go

Expand Down

0 comments on commit fde7ac4

Please sign in to comment.