1
0
mirror of https://github.com/ko-build/ko.git synced 2025-11-23 22:35:11 +02:00
Files
ko-build/docs
Nathan Mittler 7cb29ac9b8 Refactor global values to be defaults
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
2024-05-21 11:29:50 -04:00
..
2024-04-18 21:02:48 +09:00
2022-09-30 15:04:37 -04:00
2023-11-08 15:25:24 +00:00
2024-02-27 11:59:38 -05:00
2024-05-06 07:49:14 -04:00
2022-09-30 15:04:37 -04:00

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 mkdocs and mkdocs-material and run mkdocs serve, or
  • docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
    • on an M1 Mac, use ghcr.io/afritzler/mkdocs-material instead.

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.