mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.2.0 to 3.3.0. - [Release notes](https://github.com/sigstore/cosign-installer/releases) - [Commits](https://github.com/sigstore/cosign-installer/compare/1fc5bd396d372bee37d608f955b336615edf79c8...9614fae9e5c5eddabb09f90a270fcb487c9f7149) --- updated-dependencies: - dependency-name: sigstore/cosign-installer dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
69 lines
2.2 KiB
YAML
69 lines
2.2 KiB
YAML
name: KinD e2e tests
|
|
|
|
on:
|
|
workflow_dispatch: # Allow manual runs.
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
e2e-tests:
|
|
name: e2e tests
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
# https://github.com/google/go-containerregistry/pull/125 allows insecure registry for
|
|
# '*.local' hostnames. This works both for `ko` and our own tag-to-digest resolution logic,
|
|
# thus allowing us to test without bypassing tag-to-digest resolution.
|
|
REGISTRY_NAME: registry.local
|
|
REGISTRY_PORT: 5000
|
|
KO_DOCKER_REPO: registry.local:5000/ko
|
|
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
check-latest: true
|
|
|
|
- name: Install ko
|
|
run: go install ./
|
|
|
|
- name: Setup Cluster
|
|
uses: chainguard-dev/actions/setup-kind@81dc0f9b6cd749004a9567afffef41ea84cf954c # main
|
|
with:
|
|
k8s-version: v1.25.x
|
|
registry-authority: ${{ env.REGISTRY_NAME }}:${{ env.REGISTRY_PORT }}
|
|
|
|
- name: Install Cosign
|
|
uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 # v3.3.0
|
|
|
|
- name: Run Smoke Test
|
|
run: |
|
|
# Test with kind load
|
|
KO_DOCKER_REPO=kind.local ko apply --platform=all -f ./test
|
|
kubectl wait --timeout=10s --for=condition=Ready pod/kodata
|
|
kubectl delete pod kodata
|
|
|
|
# Test with registry
|
|
ko apply --platform=all -f ./test
|
|
kubectl wait --timeout=60s --for=condition=Ready pod/kodata
|
|
kubectl delete pod kodata
|
|
|
|
# Test ko run with kind load
|
|
# This tests that --labels are passed to kubectl, and -wait is passed to the test binary.
|
|
KO_DOCKER_REPO=kind.local ko run ./test -- --labels=foo=bar -- -wait=false
|
|
|
|
- name: Check SBOM
|
|
run: |
|
|
set -o pipefail
|
|
|
|
echo '::group:: SBOM'
|
|
cosign download sbom $(ko build ./test)
|
|
echo "${SBOM}"
|
|
echo '::endgroup::'
|
|
|
|
- name: Collect diagnostics and upload
|
|
if: ${{ failure() }}
|
|
uses: chainguard-dev/actions/kind-diag@84c993eaf02da1c325854fb272a4df9184bd80fc # main
|