Commit Graph
183 Commits
Author SHA1 Message Date
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
jonjohnsonjrandMatt Moore 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
Knative Automation f68496adae Update common github actions
Signed-off-by: Knative Automation <automation@knative.team>
2020-10-29 01:38:35 +00:00
Jason Hall 33d1b3d5bf Merge pull request #226 from ImJasonH/badge
Add GitHub Actions badge for build status
2020-10-28 14:17:29 -04:00
Matt Moore cde258294f Run the hello test on multiple architectures (#227) 2020-10-23 16:47:34 -07:00
Matt Moore d9cc0ca9ea Move the kind and integration tests to actions (#225) 2020-10-23 10:19:48 -07:00
Jason Hall 24ed40437d Add GitHub Actions badge for build status 2020-10-23 13:09:25 -04:00
Jason Hall 9b91035562 Merge pull request #223 from mattmoor/auto-updates/format-markdown
[Automated] Format markdown
2020-10-15 09:28:53 -04:00
Jason Hall 28a36d6a65 Merge pull request #213 from mattmoor/auto-updates/common-actions
[Automated] Update actions
2020-10-15 09:28:39 -04:00
Matt Moore (via Sockpuppet) b99d96f099 Format markdown
Signed-off-by: Matt Moore (via Sockpuppet) <mattmoor@vmware.com>
2020-10-15 01:42:20 +00:00
Matt Moore (via Sockpuppet) 2d9942c3b0 Update common github actions
Signed-off-by: Matt Moore (via Sockpuppet) <mattmoor@vmware.com>
2020-10-15 01:41:38 +00:00
Jason Hall 3691164421 Document --platform flag in README.md (#211) 2020-10-14 12:57:15 -07:00
Jason Hall 2c4d75521e Merge pull request #222 from markusthoemmes/fix-lints
Fix things pointed out by golangci-lint
2020-10-13 10:07:59 -04:00
Markus Thömmes b5daa6cdd9 Reduce config a bit 2020-10-13 15:29:05 +02:00
Markus Thömmes 695b39f9f4 Fix things pointed out by golangci-lint 2020-10-13 15:27:59 +02:00
Markus Thömmes f527c9b024 Document usage of KIND_CLUSTER_NAME (#220) 2020-10-08 10:12:48 -07:00
Jason Hall e780390edb Avoid panic caused by MultiPublisher (#216)
MultiPublisher now returns an error when it's configured with no
publishers, and resolver.go now appends a nop publisher when it's
configured not to publish, that simulates a publish without actually
pushing any images.

.
2020-10-06 06:45:25 -07:00
Matt Moore dc30efcfd8 Format markdown (#217)
Signed-off-by: Matt Moore (via Sockpuppet) <mattmoor@vmware.com>
2020-10-05 18:38:43 -07:00
steeling 01820ce657 Update README with link to kind (#212)
There were no links to kind in the README prior to this PR
2020-10-05 07:45:53 -07:00
Nghia Tran 598e7a7644 Fix left-over from copy/paste (#214) 2020-10-03 18:03:30 -07:00