Skip to content

update references to imjasonh/setup-ko #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/use-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:
- uses: actions/checkout@v2

# Minimal publish
- uses: imjasonh/setup-ko@main
- uses: ko-build/setup-ko@main
- run: ko publish --bare ./

- name: Install old release
uses: imjasonh/setup-ko@main
uses: ko-build/setup-ko@main
with:
version: v0.8.0
- name: Check installed version
run: ko version | grep 0.8.0

- name: Install from tip
uses: imjasonh/setup-ko@main
uses: ko-build/setup-ko@main
with:
version: tip
- name: Check installed version (tip)
Expand All @@ -40,7 +40,7 @@ jobs:

# If KO_DOCKER_REPO is set during setup, it's set for future steps.
- name: Pre-set KO_DOCKER_REPO
uses: imjasonh/setup-ko@main
uses: ko-build/setup-ko@main
env:
KO_DOCKER_REPO: already-set
- name: Check pre-set KO_DOCKER_REPO
Expand Down
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# GitHub Action to install and setup [`ko`](https://github.com/google/ko)

[![Build](https://github.com/imjasonh/setup-ko/actions/workflows/use-action.yaml/badge.svg)](https://github.com/imjasonh/setup-ko/actions/workflows/use-action.yaml)
[![Build](https://github.com/ko-build/setup-ko/actions/workflows/use-action.yaml/badge.svg)](https://github.com/ko-build/setup-ko/actions/workflows/use-action.yaml)

> :warning: Note: `ko` recently [moved to its own GitHub org](https://github.com/ko-build/ko/issues/791), which broke `[email protected]` if the `ko` version wasn't specified.
>
> To fix this, either upgrade to [`[email protected]`](https://github.com/imjasonh/setup-ko/releases/tag/v0.6) or specify `version`
> To fix this, either upgrade to [`[email protected]`](https://github.com/ko-build/setup-ko/releases/tag/v0.6) or specify `version`

## Example usage

Expand All @@ -25,7 +25,7 @@ jobs:
go-version: 1.18
- uses: actions/checkout@v2

- uses: imjasonh/[email protected]
- uses: ko-build/[email protected]
- run: ko build
```

Expand All @@ -35,16 +35,17 @@ By default, the action sets `KO_DOCKER_REPO=ghcr.io/[owner]/[repo]` for all subs

See [documentation for `ko`](https://github.com/google/ko#configuration) to learn more about configuring `ko`.

The action works on Linux and macOS [runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners). If you'd like support for Windows runners, [let me know](https://github.com/imjasonh/setup-ko/issues/new).
The action works on Linux and macOS [runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners).
If you'd like support for Windows runners, [let us know](https://github.com/ko-build/setup-ko/issues/new)!

### Select `ko` version to install

By default, `imjasonh/setup-ko` installs the [latest released version of `ko`](https://github.com/google/ko/releases).
By default, `ko-build/setup-ko` installs the [latest released version of `ko`](https://github.com/google/ko/releases).

You can select a version with the `version` parameter:

```yaml
- uses: imjasonh/[email protected]
- uses: ko-build/[email protected]
with:
version: v0.11.2
```
Expand All @@ -53,7 +54,7 @@ To build and install `ko` from source using `go install`, specify `version: tip`

### Pushing to other registries

By default, `imjasonh/setup-ko` configures `ko` to push images to [GitHub Container Registry](https://ghcr.io), but you can configure it to push to other registries as well.
By default, `ko-build/setup-ko` configures `ko` to push images to [GitHub Container Registry](https://ghcr.io), but you can configure it to push to other registries as well.

If `KO_DOCKER_REPO` is already set when `setup-ko` runs, it will skip logging in to ghcr.io and will propagate `KO_DOCKER_REPO` for subsequent steps.

Expand All @@ -63,7 +64,7 @@ You can use [encrypted secrets](https://docs.github.com/en/actions/reference/enc
```yaml
steps:
...
- uses: imjasonh/[email protected]
- uses: ko-build/[email protected]
env:
KO_DOCKER_REPO: my.registry/my-repo
- env:
Expand Down Expand Up @@ -96,7 +97,7 @@ jobs:
with:
go-version: 1.15
- uses: actions/checkout@v2
- uses: imjasonh/[email protected]
- uses: ko-build/[email protected]

- name: Generate and upload release.yaml
env:
Expand All @@ -109,6 +110,6 @@ jobs:

### A note on versioning

The `@v0.4` in the `uses` statement refers to the version _of the action definition in this repo._
The `@v0.X` in the `uses` statement refers to the version _of the action definition in this repo._

Regardless of what version of the action definition you use, `imjasonh/setup-ko` will install the latest released version of `ko` unless otherwise specified with `version:`.
Regardless of what version of the action definition you use, `ko-build/setup-ko` will install the latest released version of `ko` unless otherwise specified with `version:`.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/imjasonh/setup-ko
module github.com/ko-build/setup-ko

go 1.16