1
0
mirror of https://github.com/ko-build/ko.git synced 2025-02-13 19:42:26 +02:00

301 Commits

Author SHA1 Message Date
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
Yulia Gaponenko
af7fb47529
Add s390x architecture to ko binary releases (#300)
Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-01-20 08:11:27 -08:00
jonjohnsonjr
0801316109
Fix ko login (#298)
This was missed when main.go was moved to the root.
2021-01-18 11:12:14 -08:00
jonjohnsonjr
34568cac73
Use remote.WithUserAgent where possible (#294)
This was using remote.WithTransport to set it manually, and this is much
simpler (also annotates with the go-containerregistry version). This is
really nice because it will give us at least some version information
where we had none before (for non-releases).

Before:

ko
ko/(devel)
ko/v0.7.0

After:

ko go-containerregistry/v0.4.0
ko/(devel) go-containerregistry/v0.4.0
ko/v0.7.0 go-containerregistry/v0.4.0
2021-01-18 11:11:16 -08:00
Jason Hall
dfe3d5137a
Merge pull request #293 from jonjohnsonjr/bump-ggcr
Bump ggcr to v0.4.0
2021-01-14 09:39:54 -05:00
Jon Johnson
e521d7625f Bump ggcr to v0.4.0 2021-01-13 15:51:55 -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
Jason Hall
bd91eab30c
Merge pull request #290 from knative-automation/auto-updates/format-markdown
[Automated] Format markdown
2021-01-12 06:28:54 -05:00
Knative Automation
b6ed60a53e Format markdown
Signed-off-by: Knative Automation <automation@knative.team>
2021-01-12 02:24:23 +00:00
Ville Aikas
2f3c49e479
point to releases for installation (#289) 2021-01-11 09:13:26 -08:00
Matt Moore
d4fb288a2a
Fix .goreleaser.yml (#285) 2021-01-04 17:03:01 -08:00
Jason Hall
5b7eaf7df3
Merge pull request #283 from knative-automation/auto-updates/common-actions
[Automated] Update actions
2020-12-23 22:40:01 -05:00
Knative Automation
4f05ecebf9 Update common github actions
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-24 01:57:38 +00:00
knative-automation
0bfb6b0784
Format markdown (#282)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-22 18:42:22 -08:00
Jason Hall
b898b77a0c
Merge pull request #281 from jonjohnsonjr/strict-always
Always use "strict" mode
2020-12-22 17:15:41 -05:00
Jon Johnson
6586a72f8a Always use "strict" mode
We dropped this flag, so we're always in non-strict mode by default,
so if there is a ko:// reference that fails to build, we don't error
out. This drops some guards so that we are always in strict mode and
only build ko:// things.
2020-12-22 14:00:31 -08:00
Jason Hall
78b7bed99b
Merge pull request #280 from jonjohnsonjr/document-goflags
Document GOFLAGS
2020-12-22 15:04:47 -05:00
Jon Johnson
fa39374027 Document GOFLAGS 2020-12-22 10:23:17 -08:00
Scott Nichols
c2b862d468
Move ko binary to root of project. (#257)
* Move ko binary to root of project.

* go.mod says required golang version is 1.14

* go install uses the folder name

* lint and copyright bump

* moving the test file changed the test hash.

* more refs of cmd/test

* add deprecation message
v0.7.0
2020-12-22 09:31:02 -08:00
Matt Moore
64b28d0239
Revert to 0.18.8 of K8s (#279) 2020-12-22 09:26:51 -08:00
jonjohnsonjr
0427aed99b
Add ko login (#277)
This was previously `ko auth login`, which I've hidden, and perhaps we
can alias to `ko login` in the future, but in theory folks could have
been using `ko auth get`, and I don't want to break that for no reason.
2020-12-22 09:12:27 -08:00
Jason Hall
771a2a36b4
Merge pull request #278 from knative-automation/auto-updates/format-markdown
[Automated] Format markdown
2020-12-22 10:36:08 -05:00
jonjohnsonjr
eb93ca875f
Update ggcr to v0.3.0 (#276)
* update ggcr

* go mod vendor

* go mod tidy
2020-12-22 07:22:28 -08:00
Knative Automation
c78b3e11d5 Format markdown
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-22 01:50:26 +00:00
jonjohnsonjr
7e3245343a
Allow comma-separated list of platforms (#259)
* Allow comma-separated list of platforms

* Parse platform spec once

* Update --platform docs in README

* Update pkg/build/gobuild_test.go

Co-authored-by: Matt Moore <mattmoor@vmware.com>

* Return err for bad defaulting for --platform

Also respect GOARM as variant if the goarch is arm.

* Refactor platform matching

* Update README.md to mention GOARM

* Fix travis test

Co-authored-by: Matt Moore <mattmoor@vmware.com>
2020-12-21 16:53:00 -08:00
jonjohnsonjr
fd5cd4bfbc
Actually print errors during resolve (#275)
We were just throwing away the error for `ko resolve`.
2020-12-21 14:51:05 -08:00
jonjohnsonjr
522c37c4e0
Add ctx everywhere (#268)
* Add ctx to publish.Interface

I noticed that hitting ctrl-C didn't work when pushing images, this
should fix that.

* Use context everywhere that makes sense
2020-12-21 11:47:05 -08:00
Arve Seljebu
552c3d4336
documentation: auth without docker, not without ko (#266) 2020-12-21 11:40:43 -08:00
knative-automation
722ad3c37b
Format markdown (#272)
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-17 18:13:48 -08:00
Matt Moore
222b0fc788
Allow ko to produce estargz layers. (#271)
* Allow ko to produce estargz layers.

This pulls in the latest google/go-containerregistry, which enables folks to set `GGCR_EXPERIMENT_ESTARGZ=1` to enable `ko` to start producing layers compatible with the estargz format, which enables the containerd estargz-snapshotter to lazy-load parts of images.

* Add README
2020-12-17 15:00:30 -08:00
Jason Hall
68ebcc8454
Merge pull request #270 from knative-automation/auto-updates/common-actions
[Automated] Update actions
2020-12-16 21:13:35 -05:00
Knative Automation
3414d41305 Update common github actions
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-17 01:56:11 +00:00
Matt Moore
960e6a3f1c
Update ggcr and use the new tarball.WithCompressCaching (#263)
This simplifies the logic for creating layers and relies on the new option instead of pre-gzipping (and gunzip being faster).  The net effect of this should be the elimination of an extra gunzip, but it should not materially impact the memory pressure because we were ALREADY caching the gzipped layers in-memory, we were just doing it on the caller side, which provided less benefit!
2020-12-13 18:14:27 -08:00
Jason Hall
06ebf033f0
Merge pull request #260 from knative-automation/auto-updates/common-actions
[Automated] Update actions
2020-12-09 13:33:23 -05:00
Knative Automation
eacbed4969 Update common github actions
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-09 18:28:40 +00:00
Jason Hall
5b08b05174
Merge pull request #255 from knative-automation/auto-updates/common-actions
[Automated] Update actions
2020-12-03 09:31:41 -05:00
Knative Automation
87d718d7d6 Update common github actions
Signed-off-by: Knative Automation <automation@knative.team>
2020-12-03 13:43:10 +00:00
jonjohnsonjr
b84301964a
Make --watch work with ko:// (#250)
The dep-notify package doesn't know anything about ko, so we need to
trim the strict prefix before sending import paths over to it.
2020-11-20 13:12:19 -08:00
jonjohnsonjr
1c704388dc
Print platform variant when building go binary (#248) 2020-11-20 09:15:04 -08:00
Jason Hall
bd1ec540fa
Merge pull request #247 from jonjohnsonjr/filepath
Stop using filepath.Join in publisher
2020-11-17 14:25:32 -05:00
Jon Johnson
c183e84439 Stop using filepath.Join in publisher 2020-11-17 09:33:56 -08:00
Jason Hall
ea5dc203ee
Merge pull request #244 from knative-automation/auto-updates/common-actions
[Automated] Update actions
2020-11-11 20:24:09 -05:00
Knative Automation
c917737d65 Update common github actions
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-12 01:07:50 +00:00
Nghia Tran
715c03ebc2
Add crane's auth command to facilitate logging into a registry (#243)
* Add crane's auth command to facilitate logging into a registry

* Add documentation about `ko auth login`
2020-11-09 07:27:54 -08:00
knative-automation
36a921f44b
Update common github actions (#242)
Signed-off-by: Knative Automation <automation@knative.team>
2020-11-04 18:50:25 -08:00
jonjohnsonjr
1f17ce95d4
Set GOARM based on platform.variant (#239)
This relies on some hard-coded knowledge of the go compiler, which is
unfortunate, so we will have to update this if things change.
2020-11-04 12:44:08 -08:00
Matt Moore
79beb3b015
Refactor the publish.Namer, add --bare option for image naming (#234)
* Refactor the publish.Namer to produce the full repo name.

* Add --naked to have image publishing use ${KO_DOCKER_REPO}:tag

* Change flag name, add disclaimer
v0.6.1
2020-11-03 13:47:36 -08:00
Jason Hall
d767708246
IsSupportedReference returns descriptive error (#233)
This can be useful to determine what they need to do to make a ko
publish work.
2020-10-31 09:55:28 -07:00
Jason Hall
ff18e80bc8
Merge pull request #232 from knative-automation/auto-updates/common-actions
[Automated] Update actions
2020-10-30 09:10:42 -04:00