Compare commits
No commits in common. "main" and "imjasonh-patch-1" have entirely different histories.
main
...
imjasonh-p
23
.github/dependabot.yml
vendored
23
.github/dependabot.yml
vendored
@ -1,23 +0,0 @@
|
|||||||
---
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: gomod
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
open-pull-requests-limit: 10
|
|
||||||
groups:
|
|
||||||
all:
|
|
||||||
update-types:
|
|
||||||
- "patch"
|
|
||||||
|
|
||||||
- package-ecosystem: "github-actions"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
open-pull-requests-limit: 10
|
|
||||||
groups:
|
|
||||||
all:
|
|
||||||
update-types:
|
|
||||||
- "minor"
|
|
||||||
- "patch"
|
|
55
.github/workflows/ci.yaml
vendored
55
.github/workflows/ci.yaml
vendored
@ -1,55 +0,0 @@
|
|||||||
name: ci
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test-ko-action:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
|
||||||
with:
|
|
||||||
go-version: '1.22'
|
|
||||||
check-latest: 'true'
|
|
||||||
|
|
||||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
||||||
|
|
||||||
# Minimal publish
|
|
||||||
- uses: ./
|
|
||||||
|
|
||||||
- run: ko publish --bare ./
|
|
||||||
if: ${{ github.event_name == 'pull_request' }}
|
|
||||||
env:
|
|
||||||
KO_DOCKER_REPO: ko.local
|
|
||||||
|
|
||||||
- name: Install old release
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
version: v0.8.0
|
|
||||||
|
|
||||||
- name: Check installed version
|
|
||||||
run: ko version | grep 0.8.0
|
|
||||||
|
|
||||||
- name: Install from tip
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
version: tip
|
|
||||||
|
|
||||||
- name: Check installed version (tip)
|
|
||||||
run: |
|
|
||||||
sudo rm /usr/local/bin/ko # Uninstall previous versions.
|
|
||||||
ko version
|
|
||||||
|
|
||||||
# If KO_DOCKER_REPO is set during setup, it's set for future steps.
|
|
||||||
- name: Pre-set KO_DOCKER_REPO
|
|
||||||
uses: ./
|
|
||||||
env:
|
|
||||||
KO_DOCKER_REPO: already-set
|
|
||||||
|
|
||||||
- name: Check pre-set KO_DOCKER_REPO
|
|
||||||
run: |
|
|
||||||
if [[ "${KO_DOCKER_REPO}" != "already-set" ]]; then
|
|
||||||
echo "${KO_DOCKER_REPO} != already-set"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
21
.github/workflows/use-action.yaml
vendored
21
.github/workflows/use-action.yaml
vendored
@ -2,39 +2,30 @@ name: Use Action
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: ['main']
|
||||||
- 'main'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
use-action:
|
use-action:
|
||||||
name: Use Action
|
name: Use Action
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform: [ubuntu-latest, macos-latest]
|
||||||
- ubuntu-latest
|
|
||||||
- macos-latest
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.22'
|
go-version: 1.18
|
||||||
check-latest: 'true'
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
||||||
|
|
||||||
# Minimal publish
|
# Minimal publish
|
||||||
- uses: ko-build/setup-ko@main
|
- uses: ko-build/setup-ko@main
|
||||||
|
|
||||||
- run: ko publish --bare ./
|
- run: ko publish --bare ./
|
||||||
|
|
||||||
- name: Install old release
|
- name: Install old release
|
||||||
uses: ko-build/setup-ko@main
|
uses: ko-build/setup-ko@main
|
||||||
with:
|
with:
|
||||||
version: v0.8.0
|
version: v0.8.0
|
||||||
|
|
||||||
- name: Check installed version
|
- name: Check installed version
|
||||||
run: ko version | grep 0.8.0
|
run: ko version | grep 0.8.0
|
||||||
|
|
||||||
@ -42,7 +33,6 @@ jobs:
|
|||||||
uses: ko-build/setup-ko@main
|
uses: ko-build/setup-ko@main
|
||||||
with:
|
with:
|
||||||
version: tip
|
version: tip
|
||||||
|
|
||||||
- name: Check installed version (tip)
|
- name: Check installed version (tip)
|
||||||
run: |
|
run: |
|
||||||
sudo rm /usr/local/bin/ko # Uninstall previous versions.
|
sudo rm /usr/local/bin/ko # Uninstall previous versions.
|
||||||
@ -53,7 +43,6 @@ jobs:
|
|||||||
uses: ko-build/setup-ko@main
|
uses: ko-build/setup-ko@main
|
||||||
env:
|
env:
|
||||||
KO_DOCKER_REPO: already-set
|
KO_DOCKER_REPO: already-set
|
||||||
|
|
||||||
- name: Check pre-set KO_DOCKER_REPO
|
- name: Check pre-set KO_DOCKER_REPO
|
||||||
run: |
|
run: |
|
||||||
if [[ "${KO_DOCKER_REPO}" != "already-set" ]]; then
|
if [[ "${KO_DOCKER_REPO}" != "already-set" ]]; then
|
||||||
|
15
README.md
15
README.md
@ -20,10 +20,10 @@ jobs:
|
|||||||
name: Publish
|
name: Publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.20.x'
|
go-version: '1.20.x'
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: ko-build/setup-ko@v0.6
|
- uses: ko-build/setup-ko@v0.6
|
||||||
- run: ko build
|
- run: ko build
|
||||||
@ -47,7 +47,7 @@ You can select a version with the `version` parameter:
|
|||||||
```yaml
|
```yaml
|
||||||
- uses: ko-build/setup-ko@v0.6
|
- uses: ko-build/setup-ko@v0.6
|
||||||
with:
|
with:
|
||||||
version: v0.14.1
|
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`.
|
||||||
@ -86,18 +86,17 @@ name: Publish Release YAML
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types:
|
types: ['created']
|
||||||
- 'created'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-release-yaml:
|
publish-release-yaml:
|
||||||
name: Publish Release YAML
|
name: Publish Release YAML
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.20.x'
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v2
|
||||||
- uses: ko-build/setup-ko@v0.6
|
- uses: ko-build/setup-ko@v0.6
|
||||||
|
|
||||||
- name: Generate and upload release.yaml
|
- name: Generate and upload release.yaml
|
||||||
|
@ -5,7 +5,7 @@ branding:
|
|||||||
color: green
|
color: green
|
||||||
inputs:
|
inputs:
|
||||||
version:
|
version:
|
||||||
description: 'Version of ko to install (tip, latest-release, v0.14.1, etc.)'
|
description: 'Version of ko to install (tip, latest-release, v0.8.2, etc.)'
|
||||||
required: true
|
required: true
|
||||||
default: 'latest-release'
|
default: 'latest-release'
|
||||||
runs:
|
runs:
|
||||||
|
Loading…
Reference in New Issue
Block a user