update examples to latest versions
This commit is contained in:
parent
6f13ec1511
commit
c682db2712
16
README.md
16
README.md
@ -22,11 +22,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.15
|
go-version: 1.18
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: imjasonh/setup-ko@v0.4
|
- uses: imjasonh/setup-ko@v0.6
|
||||||
- run: ko publish ./
|
- run: ko build
|
||||||
```
|
```
|
||||||
|
|
||||||
_That's it!_ This workflow will build and publish your code to [GitHub Container Regsitry](https://ghcr.io).
|
_That's it!_ This workflow will build and publish your code to [GitHub Container Regsitry](https://ghcr.io).
|
||||||
@ -44,9 +44,9 @@ By default, `imjasonh/setup-ko` installs the [latest released version of `ko`](h
|
|||||||
You can select a version with the `version` parameter:
|
You can select a version with the `version` parameter:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: imjasonh/setup-ko@v0.4
|
- uses: imjasonh/setup-ko@v0.6
|
||||||
with:
|
with:
|
||||||
version: v0.8.0
|
version: v0.11.2
|
||||||
```
|
```
|
||||||
|
|
||||||
To build and install `ko` from source using `go install`, specify `version: tip`.
|
To build and install `ko` from source using `go install`, specify `version: tip`.
|
||||||
@ -64,14 +64,14 @@ You can use [encrypted secrets](https://docs.github.com/en/actions/reference/enc
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
...
|
...
|
||||||
- uses: imjasonh/setup-ko@v0.4
|
- uses: imjasonh/setup-ko@v0.6
|
||||||
env:
|
env:
|
||||||
KO_DOCKER_REPO: my.registry/my-repo
|
KO_DOCKER_REPO: my.registry/my-repo
|
||||||
- env:
|
- env:
|
||||||
auth_token: ${{ secrets.auth_token }}
|
auth_token: ${{ secrets.auth_token }}
|
||||||
run: |
|
run: |
|
||||||
echo "${auth_token}" | ko login https://my.registry --username my-username --password-stdin
|
echo "${auth_token}" | ko login https://my.registry --username my-username --password-stdin
|
||||||
ko publish ./
|
ko build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Release Integration
|
### Release Integration
|
||||||
@ -97,7 +97,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: 1.15
|
go-version: 1.15
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: imjasonh/setup-ko@v0.4
|
- uses: imjasonh/setup-ko@v0.6
|
||||||
|
|
||||||
- name: Generate and upload release.yaml
|
- name: Generate and upload release.yaml
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user