/kubebuilder-workflows

Reusable workflows for kubebuilder project

Primary LanguageMakefileApache License 2.0Apache-2.0

kubebuilder-workflows test

This provides the reusable workflows for a Kubebuilder project.

Getting Started

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