mirror of
https://github.com/ko-build/ko.git
synced 2025-11-23 22:35:11 +02:00
There was recent work to add global values for `env`, `flags`, and `ldflags`. The global values would be merged with per-build values to generate the value used for the builds. There are a couple issues with this: - It's inconsistent with the existing code, which only has `default` values declared globally (there is no merging today). - The name of the `flag` variable, caused a conflict with knative's `KO_FLAGS` environment variable (see #1317) This PR does the following: - Refactors the logic to use `defaultEnv`, `defaultFlags`, and `defaultLdflags`. This resolves both issues described above. - Updates documentation Fixes #1317
Docs for https://ko.build
Development
Update .md files to update content.
Update mkdocs.yml to update sidebar headers and ordering.
To run locally:
- install
mkdocsandmkdocs-materialand runmkdocs serve, or docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material- on an M1 Mac, use
ghcr.io/afritzler/mkdocs-materialinstead.
- on an M1 Mac, use
This will start a local server on localhost:8000 that autoupdates as you make changes.
Deployment
When PRs are merged, the site will be rebuilt and published automatically.
Credits
The site is powered by mkdocs-material. The code and theme are released under the MIT license.
Content is licensed CC-BY.