-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.ko.yaml
45 lines (39 loc) · 1.18 KB
/
.ko.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Use :nonroot base image for all containers
# defaultBaseImage: gcr.io/distroless/static:nonroot
# To override the base image for certain importpaths:
# Use: busybox to debug container
# baseImageOverrides:
# github.com/xmlking/grpc-starter-kit/service/greeter: busybox
# github.com/xmlking/grpc-starter-kit/service/emailer: busybox
# defaultBaseImage: gcr.io/distroless/base
# example: https://github.com/sigstore/cosign/blob/main/.ko.yaml
labels:
org.opencontainers.image.licenses: MIT
org.opencontainers.image.source: https://github.com/xmlking/grpc-starter-kit
builds:
# - id: foo
# dir: . # default is .
# main: ./foobar/foo
# env:
# - GOPRIVATE=git.internal.example.com,source.developers.google.com
# - CGO_ENABLED=0
# - GOWORK=off
# flags:
# - -trimpath
# - -tags
# - netgo
# ldflags:
# - -s -w
# - -extldflags "-static"
# - -X main.version={{.Env.VERSION}}
- id: greeter
dir: . # default is .
main: ./service/greeter # default is .
env:
# - CGO_ENABLED=0
# - GOOS=linux
# - GOPROXY="https://proxy.golang.org,direct"
# - GOWORK=off
ldflags:
- -s -w
- -extldflags "-static"