Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2a091df8b9 | |||
| 5219457d33 |
+1
-1
@@ -9,6 +9,6 @@ COPY . .
|
|||||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${GOARCH} \
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${GOARCH} \
|
||||||
go build -trimpath -ldflags="-s -w" -o main .
|
go build -trimpath -ldflags="-s -w" -o main .
|
||||||
|
|
||||||
FROM gcr.io/distroless/static-debian12@sha256:20bc6c0bc4d625a22a8fde3e55f6515709b32055ef8fb9cfbddaa06d1760f838
|
FROM gcr.io/distroless/static-debian12@sha256:9c346e4be81b5ca7ff31a0d89eaeade58b0f95cfd3baed1f36083ddb47ca3160
|
||||||
COPY --from=build /app/main /
|
COPY --from=build /app/main /
|
||||||
CMD ["/main"]
|
CMD ["/main"]
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ codegen:
|
|||||||
test: test-unit test-coverage
|
test: test-unit test-coverage
|
||||||
|
|
||||||
test-unit:
|
test-unit:
|
||||||
go test . -coverprofile=coverage.out
|
go test ./... -coverprofile=coverage.out
|
||||||
|
|
||||||
test-coverage:
|
test-coverage:
|
||||||
go tool gcov2lcov -infile coverage.out > lcov.info
|
go tool gcov2lcov -infile coverage.out > lcov.info
|
||||||
|
|||||||
Reference in New Issue
Block a user