This provides the reusable workflows for a Kubebuilder project.
name: go
on:
pull_request:
paths:
- .github/workflows/go.yaml
- go.*
- '**/*.go'
- Makefile
push:
branches:
- main
paths:
- .github/workflows/go.yaml
- go.*
- '**/*.go'
- Makefile
jobs:
go:
uses: int128/kubebuilder-workflows/.github/workflows/go.yaml@v1
permissions:
contents: write
pull-requests: write
with:
go-version: 1.20.3
golangci-lint-version: v1.52.2
name: manifest
on:
pull_request:
paths:
- config/**
- .github/workflows/manifest.yaml
jobs:
manifest:
uses: int128/kubebuilder-workflows/.github/workflows/manifest.yaml@v1
permissions:
contents: read
pull-requests: write
name: release
on:
push:
tags:
- v*
pull_request:
paths:
- config/**
- .github/workflows/release.yaml
jobs:
manifest:
uses: int128/kubebuilder-workflows/.github/workflows/release.yaml@v1
permissions:
contents: write