Commit Graph
95 Commits
Author SHA1 Message Date
Carlos Tadeu Panato Junior 2b8ee98d2d update boilerplate file to be KO Build Authors (#1056) 2023-06-09 10:48:00 -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 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
jwcesign 2a0a50cb16 Add -- usage in readme (#840)
Signed-off-by: jwcesign <jwcesign@gmail.com>

Signed-off-by: jwcesign <jwcesign@gmail.com>
2022-10-07 11:59:53 -07:00
Ian Lewis 98a8ec6932 Update setup-ko version (#836) 2022-10-04 11:03:39 -04:00
Batuhan Apaydın e93dbee854 feat: add keychain instead of auth to fix different repository problem (#821)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2022-09-21 15:12:54 -04:00
Batuhan Apaydın 5e0452ad67 feat: write sbom result to disk (#822)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2022-09-20 16:44:54 -04:00
Mark Chmarny 52094bd891 removes repo move message (#814) 2022-09-06 13:54:09 -04:00
Jason Hall 9a1eae8517 ci: build and test using 1.18 and 1.19 (drop 1.17) (#812)
* ci: build and test using 1.18 and 1.19 (drop 1.17)

* remove pre-1.18 compat code, update README

* go install goimports before checkout

* update chainguard-dev/actions to versions that go install
2022-09-06 12:59:56 -04:00
Mark Chmarny 3baf14de6e adds org move message (#789)
* adds org move message

* fixes lint error on training spaces
2022-08-17 21:21:29 -04:00
laurentsimon 14b4fe1c7c feat: generate SLSA provenance for release binaries (#730)
* Support for SLSA provenance generation

* updates

* updates

* updates

* updates

* updates

* comment

* update

* update

* update

* update

* update

* update

* update

* update

* update
2022-08-16 18:01:15 -04:00
Jason Hall f7976d0e15 Add installation instructions for Alpine (#754) 2022-07-13 16:35:43 -04:00
Batuhan ApaydınandJason Hall e6a7a37e26 docs(readme): add sbom section (#710)
* docs(readme): add sbom section

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

* Update README.md

Co-authored-by: Jason Hall <jason@chainguard.dev>
2022-06-06 10:18:26 -04:00
Jason Hall eb2597f975 Update 'ko publish' -> 'ko build' in README (#601) 2022-02-17 17:05:35 -05:00
Jason Hall 89ede9110a Include cred helpers in keychain (#581)
This adds implicit support for Google, Amazon, Azure and GitHub
container registries if the environment provides credentials.

Binary size increases from 22 MB -> 26 MB
2022-02-08 15:20:31 -05:00
Kodai Sakabe da244de716 Add how to use Azure Container Apps (#561) 2021-12-27 12:27:26 -05:00
Jason Hall 96bedf16df Add .ko.yaml to base ko container image on golang:1.17 (#533)
* Add .ko.yaml to base ko container image on golang:1.17

Ignore this in e2e tests, since even though golang:1.17 provides a
Windows base image, ko's base image platform selection doesn't take
osversion into account. The e2e tests don't exercise golang usage at
all, so it shouldn't matter.

* Update README
2021-12-14 12:56:21 -05:00
darklore 6ff346909c Use default completion command provided by cobra. (#522)
* Use default `completion` command provided by cobra.

`cobra` provides default `completion` subcommand.
It supports bash, zsh, fish, and powershell by default.

* update docs
2021-12-05 09:00:38 -05:00
Jason Hall 08fccaa789 Mention other tools that integrate with ko (#504) 2021-11-16 15:08:52 -05:00
Jason Hall 5617d1ebf8 Document /ko-app/ and entrypoint in README.md (#499) 2021-11-11 15:04:12 -05:00
Jason Hall 17edbb3957 docs: Mention other deployment targets (#461) 2021-11-02 17:36:00 -04:00
Jason Hall 52d42d87a3 Document setup-ko in README.md (#484) 2021-11-02 17:35:50 -04:00
Matthias Diester b9f92681ba Improve build config issue error scenario #483 (#487)
* Add build config usage log statement

There is currently no indication whether `ko` picks one of the configured
build configurations from the `.ko.yaml` configuration file for a build.

Add log statement to print the build config being picked for the build.

Introduce default entry for build config `ID` in case it is not specified.

* Add path check for build configuration settings

Add `os.Stat` to verify that the path that is configured in the build
configuration entry is valid. As a side effect, this will print out an error
message in case someone sets an import path like `github.com/google/ko` in
the `main` field of the build config.

* Fix trimpath command line flag in README

Fixed wrong command line flag `--trimpath` to `-trimpath`.
2021-10-27 11:09:41 -04:00
Halvard Skogsrud 00d0a34583 Add integration test config to repo
Add files to repo instead of dynamically generate during the integration
test.

Also document default values of `dir` and `main`.
2021-10-27 08:22:23 +11:00
Halvard Skogsrud 103ff5b2a8 Use build config Dir for all go tool commands
Ensure that the directory specified in build configs in `.ko.yaml` is
used to:

1. Load module information
2. Resolve local paths to Go import paths
3. Working directory for compilation

The change achieves this by introducing `gobuilds`, which contains a
map of import path to `build.Interface` instances. Each entry maps to a
`builds` entry from `.ko.yaml`. `gobuilds` dispatches to the builder
instances based on the requested import path, and falls back to a
default builder if there's no match.

Thanks to @jonjohnsonjr for the suggestions in
https://github.com/google/ko/issues/422#issuecomment-909408527

Also removes mutable globals in the `commands` package.

Fixes: #422
2021-10-27 08:22:23 +11:00
Jason Hall 1e3c8ae940 Document ko publish in README (#469) 2021-10-09 18:01:21 -04:00
Jason Hall 729419aebb Add 'ko build' as a preferred alias for 'ko publish' (#456)
* Add 'ko build' as a preferred alias for 'ko publish'

* rm ko_publish.md
2021-10-05 08:48:57 -07:00
Jason Hall 91077c8c5e Remove Travis badge (#452) 2021-09-29 08:52:34 -07:00
Chmouel Boudjnah eef795f19c Update OpenShift instructions to point to latest (#437)
* Update the OpenShift documentation url to use latest instead of a specific version.
* Use `openshift registry info --public` to get registry public URL
2021-09-15 06:20:43 -04:00
Halvard Skogsrud 9a256a4b19 Enable setting environment variables in .ko.yaml (#419)
* Enable setting environment variables in .ko.yaml

Matches the GoReleaser format.

Related: #340

* Use different env example
2021-08-23 08:05:01 -07:00
Hong Xu 18096666c9 Update "go install" instructions (#377)
I got the following error when following the original instructions:

    go install: version is required when current directory is not in a module
            Try 'go install github.com/google/ko@latest' to install the latest version
2021-07-27 17:57:55 -04:00
Jason Hall 690533235a Build working Windows container images (#374)
* Build working Windows container images

Add e2e tests that run on Windows and cover kodata behavior

* now successfully skipping symlinks on windows :-/

* fix e2e test on windows, that relied on a symlink in kodata after all

* document windows symlink issue

* review feedback

* re-add kodata symlink tests for linux
2021-07-27 16:19:21 -04:00
Matthias Diester ab4d264103 Add support for Go build flags (#340)
There are use cases, where multiple Go build flags need to be set. However, the
environment variable to pass flags to Go build has some limits for `ldFlags`.

Add GoReleaser inspired configuration section to `.ko.yaml` to support setting
specific Go build and ldFlags to be used by the build. Like GoReleaser the
content of the configuration can use Go templates. Currently, only a section
for environment variables is included.

In order to reduce dependency overhead, only the respective config structs from
https://github.com/goreleaser/goreleaser/blob/master/pkg/config/config.go are
used internally to load from `.ko.yaml`.
2021-07-02 08:40:56 -07:00
Simon Kirsten ee23538378 Add KO_DATA_DATE_EPOCH env var to set the modification time for files in kodata (#372)
* Add KO_DATA_DATE_EPOCH env var

* Add documentation for KO_DATA_DATE_EPOCH env var
2021-06-15 12:50:35 -07:00
Jason Hall 380705fd26 Document KIND_CLUSTER_NAME env var in README.md (#373) 2021-06-09 13:13:33 -04:00
jonjohnsonjr 82e899db0c Look for ko.local in the daemon (#371)
* Look for ko.local in the daemon

* Update README
2021-06-09 09:20:45 -07:00
Dario Tranchitella 09aea0d50b docs: typo on README.md (#359) 2021-05-10 08:27:39 -04:00
knative-automation 9e8023aded Format markdown (#353)
Signed-off-by: Knative Automation <automation@knative.team>
2021-04-28 21:42:44 -04:00
Chmouel Boudjnah aeb0830048 Updating README for information on OpenShift (#346)
- Spellings and formatting from @ImjasonH

Signed-off-by: Chmouel Boudjnah <chmouel@chmouel.com>
2021-04-28 15:20:24 -04:00
Jason Hall 0621cbac8e Update README.md 2021-04-07 20:49:26 -04:00
Jason Hall d050647092 Update README.md 2021-04-01 09:45:59 -04:00
Knative Automation b21673e547 Format markdown
Signed-off-by: Knative Automation <automation@knative.team>
2021-04-01 02:00:06 +00:00
Jason Hall c55c3fef24 Fix typo in README.md 2021-03-25 22:01:17 -04:00
Knative Automation a377740633 Format markdown
Signed-off-by: Knative Automation <automation@knative.team>
2021-02-26 01:36:00 +00:00
Jason Hall 2863ff1b59 Streamline README.md 2021-02-24 10:06:22 -05:00
Jason Hall 746ec9019a Update travis link to main branch 2021-02-03 14:59:23 -05:00
Knative Automation c1c21e790b Format markdown
Signed-off-by: Knative Automation <automation@knative.team>
2021-01-21 02:39:36 +00:00
rui 0d0ed4d387 doc: add homebrew install (#301)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-01-20 15:33:30 -08:00
Ville Aikas d39f17111e Fix the link to releases (#291)
* Fix the link to releases

* fix the formatting
2021-01-13 09:08:00 -08:00