mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 15:38:06 +00:00
Remove '-a' flag from build command to enable caching
'-a' flag forces recompilation of all packages, even if nothing changed, completely bypasses Go’s internal build cache.
This commit is contained in:
@@ -27,7 +27,7 @@ RUN CGO_ENABLED=0 \
|
|||||||
GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} \
|
GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} \
|
||||||
go build \
|
go build \
|
||||||
-ldflags "-X \"github.com/1Password/onepassword-operator/version.Version=$operator_version\"" \
|
-ldflags "-X \"github.com/1Password/onepassword-operator/version.Version=$operator_version\"" \
|
||||||
-a -o manager cmd/main.go
|
-o manager cmd/main.go
|
||||||
|
|
||||||
# Use distroless as minimal base image to package the manager binary
|
# Use distroless as minimal base image to package the manager binary
|
||||||
# Refer to https://github.com/GoogleContainerTools/distroless for more details
|
# Refer to https://github.com/GoogleContainerTools/distroless for more details
|
||||||
|
Reference in New Issue
Block a user