-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable setting environment variables in .ko.yaml #419
Conversation
README.md
Outdated
@@ -144,6 +146,8 @@ builds: | |||
- -X main.version={{.Env.VERSION}} | |||
- id: bar | |||
main: ./foobar/bar/main.go | |||
env: | |||
- CGO_ENABLED=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't tend to support cgo well, can we use another example here instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, changed to GOCACHE
.
Should I commit the changes in |
Enables programmatically overriding build configs when ko is embedded in another tool. Related: ko-build#340, ko-build#419
I think this just needs a rebase. |
Matches the GoReleaser format. Related: ko-build#340
Enables programmatically overriding build configs when ko is embedded in another tool. Related: ko-build#340, ko-build#419
Rebased, but Travis CI complains about the s390x build. Other archs seem fine, and the other PR has the same problem. |
Frustrating :/ just going to merge this anyway but we should probably just drop travis. |
Enables programmatically overriding build configs when ko is embedded in another tool. Related: ko-build#340, ko-build#419
* Set build config via BuildOptions Enables programmatically overriding build configs when ko is embedded in another tool. Related: #340, #419 * Use local registry for base images in unit tests Tests create a local registry (using ggcr) with a dummy base image. This speeds up tests, since they don't need to hit gcr.io to fetch the default distroless base image. * Update function comment to refer to random image
Matches the GoReleaser format.
Related: #340