1
0
mirror of https://github.com/ko-build/ko.git synced 2025-11-23 22:35:11 +02:00
Commit Graph

53 Commits

Author SHA1 Message Date
salaboy
7fe5de8e8d adding labels to make it easier k8s.md
When trying out these examples, it is easier to have a deployment that can be copied and quickly tested. I don't think it adds too much clutter and it definitely saves people to troubleshoot why what they copied from the site doesn't work.
2025-04-17 20:26:21 -04:00
Bradley Stannard
d9df80e9af fix(formatting): Updated the codeblock for Dockerfile to make it more readable 2024-11-21 15:25:49 +00:00
kosamson
d077603cca add incert section 2024-10-30 13:22:37 -04:00
kosamson
52467ebe4a add documentation for installing custom root ca certificates
adds a documentation page under the advanced section outlining how to
install custom root certificates into a container built using ko
2024-10-30 13:22:37 -04:00
Maxime Brunet
ac22328979 feat: add image user option
Signed-off-by: Maxime Brunet <max@brnt.mx>
2024-10-24 09:58:21 -04:00
Nick Zavaritsky
711779e829 Document linux_capabilities in builds section 2024-10-23 17:00:48 -04:00
Gabe Cook
932656364f feat(docs): Add dark theme 2024-10-16 13:20:06 -04:00
Sean Liao
c98cb1e05f allow setting annotations
This adds a new build flag for setting annotations
on image indexes and manifests.
Annotations are no longer copied from the base image.
`org.opencontainers.image.base.digest` and
`org.opencontainers.image.base.name`
are always set to the resolved values.

Usage example:

```sh
ko build --image-annotation foo=bar,fizz=buzz .
```

Fixes #1090
Fixes #1090
Fixes #1231
Fixes #1235
Fixes #1395
2024-10-16 13:18:43 -04:00
Jeff Mendoza
d7fa6010ed Fix links in faq to config page.
Signed-off-by: Jeff Mendoza <jlm@jlm.name>
2024-10-16 13:17:26 -04:00
Dario Tranchitella
e3ea4646f4 docs: kamaji is a ko adopter 2024-08-30 12:26:01 +02:00
Dan Luhring
9bd7f3e723 docs: add draft for debugging
Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
2024-06-11 12:23:21 -04:00
Christoph Stäbler
5c6cff9d4b Fix typo
Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
2024-06-11 12:23:21 -04:00
Christoph Stäbler
95b96e5c19 Run ./hack/update-codegen.sh
Signed-off-by: Christoph Stäbler <cstabler@redhat.com>
2024-06-11 12:23:21 -04:00
Jason Hall
2ceaa89b7e remove support for CycloneDX SBOMs
Signed-off-by: Jason Hall <jason@chainguard.dev>
2024-06-10 05:56:07 -04:00
Chao Dai
3fe83e4a35 Fix a typo in terraform.md
The field name of `image` does not exist per https://registry.terraform.io/providers/ko-build/ko/latest/docs/resources/build#read-only.

Found this problem while trying to use it, and confirmed it working with this fix.
2024-05-28 16:36:31 -07:00
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
Nathan Mittler
2a4c12f410 Add global flags and ldflags
Fixes #1304
2024-05-15 16:46:47 -04:00
Nathan Mittler
c42ee5f028 feat: add template params for platform info
This restructures the build logic in order to expand the buildArgs to include:

- `Env`: the actual environment variables used to execute the build. This includes platform info (e.g. `GOOS`, `GOARCH`).
- `GoEnv`: the map of variables from `go env`, but overridden with any platform-specific values defined in `Env`.

Fixes #1301

Signed-off-by: Nathan Mittler <nmittler@aviatrix.com>
2024-05-15 14:49:18 -04:00
Nathan Mittler
4dbf90fe81 feat: Add template params for git
This includes a number of template parameters supported by [goreleaser](https://goreleaser.com/customization/templates/). Specifically, the build date information and the majority of the Git params.

Majority of the code is copied from goreleaser. I've added the MIT license from goreleaser at the top of the files.

Fixes #493

Signed-off-by: Nathan Mittler <nmittler@aviatrix.com>
2024-05-15 11:27:55 -04:00
Nathan Mittler
067f9f7899 feat: Add global env
Supports configuring global `env` variables that will be applied to all builds.

Modifies the `builder` function to accept a `buildContext` structure. This will simplify similar modifications in the future.

Fixes #1305

Signed-off-by: Nathan Mittler <nmittler@aviatrix.com>
2024-05-14 13:58:53 -07:00
Jason Hall
d373bb13bd Update index.md 2024-05-06 07:49:14 -04:00
Helias Rodrigues
49991635b3 Update index.md
Adoption
2024-05-06 07:49:14 -04:00
Yasuhiro Matsumoto
84298929b3 Fix AWS Lambda advanced docs
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
2024-04-18 21:02:48 +09:00
koki-develop
7067ad211b Update setup-ko action link in install.md
Signed-off-by: koki-develop <kou.pg.0131@gmail.com>
2024-03-13 08:49:00 -04:00
Jason Hall
1f6a92a50d Fix fly.io deployment docs 2024-02-27 11:59:38 -05:00
Amir Hardon
820ce2f90e Fix the KO_CONFIG_PATH default value in the documentation 2023-12-28 11:57:06 -08:00
Oliver Bähler
2fd041bafc chore: add capsule as lover
Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
2023-12-11 19:51:28 -05:00
Herby Gillot
63cd511412 docs: add MacPorts install info
https://ports.macports.org/port/ko/
2023-11-08 14:37:46 -05:00
Stephen Grider
f1f5fb3afb Update community.md (#1179) 2023-11-08 15:25:24 +00:00
Carlos Tadeu Panato Junior
56bea4b98d Merge pull request #1150 from developer-guy/fix/install-instructions
fix the release workflow and install instructions
2023-09-15 09:08:00 +02:00
Batuhan Apaydin
bf437011c7 fix the release workflow and install instructions
Signed-off-by: Batuhan Apaydin <batuhan.apaydin@chainguard.dev>
2023-09-14 23:43:30 +03:00
Jason Hall
78d85a7b4f include example using go packages (#1145)
Signed-off-by: Jason Hall <jason@chainguard.dev>
2023-09-11 20:12:53 +02:00
Jason Hall
1dcf2955f5 docs: add docs for TF and Lambda (#1139)
Signed-off-by: Jason Hall <jason@chainguard.dev>
2023-09-11 16:52:37 +02:00
Pascal Gru
a1030b7741 Update install.md (#1118) 2023-08-27 07:07:51 -04:00
Samuel Laferriere
220da75446 fixed typo in configuration.md 2023-07-31 11:38:53 -04:00
Jason Hall
d59ec624fb Update community.md (#1037) 2023-05-20 08:12:05 -04:00
Jason Hall
cbb93deee1 mention ko tekton task (#1039) 2023-05-08 11:03:31 -07:00
Jason Hall
175820e4c5 Update community.md (#1035)
* Update community.md

* Update community.md

* Update community.md

* Update community.md
2023-05-03 16:14:14 -04:00
Batuhan Apaydın
03f4aed682 add ko community meeting details (#938)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2023-02-25 09:17:25 -05:00
Jason Hall
9661bdd4dd update link to ko goreleaser docs (#936) 2023-02-01 14:26:22 -05:00
Michael Gasch
f6025f951e feat: Add KO_GO_PATH env var (#930)
* feat: Add KO_GO_BIN env var

Closes: #926
Signed-off-by: Michael Gasch <15986659+embano1@users.noreply.github.com>

* Update docs/configuration.md

Signed-off-by: Michael Gasch <15986659+embano1@users.noreply.github.com>
Co-authored-by: Jason Hall <jason@chainguard.dev>
2023-01-19 15:02:34 -05:00
Jason Hall
c7fcffb203 website: update CNCF announcement (#920)
* website: update CNCF announcement

* add copyright to footer, add logo

* typoes

* update logo
2023-01-04 16:15:57 -05:00
Jason Hall
ffe5ac0071 update docs to reflect actual base image (#903) 2022-12-22 15:03:52 -05:00
Jason Hall
c1f4ad17c9 Fix broken SLSA link (#899) 2022-12-12 16:24:24 -05:00
Reto Lehmann
7dc51c0cf6 Add option to configure default platforms (#897) 2022-12-12 10:07:39 -05:00
Batuhan Apaydın
45240bf3f4 add KO_DEFAULTBASEIMAGE usage to docs (#895)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2022-11-30 10:52:56 -05:00
Emma Haruka Iwao
d869cec943 Fix link in static-assets.md (#893) 2022-11-19 13:59:50 -05:00
Michael Grosser
da6b9c1dc8 install: fail with 404 instead of gzip error when url was wrong (#879) 2022-11-03 21:15:11 -04:00
Jason Hall
600d003dca another docs update (#856)
* another docs update

- remove duplicate content from README.md
- mention CNCF announcement in README and index.md
- mention Kyverno adoption
- drop broken ko deps link
- mention SBOMs and multi-platform in intro section

* rename k8s slack channel
2022-10-21 16:31:27 -04:00
Jason Hall
43cdbd25fb update docs: fix broken links, align with README (#854)
* update docs: fix broken links, align with README

* update google/ko references that can be updated
2022-10-18 14:30:34 -04:00