kubebuilder-workflows

Reusable workflows for kubebuilder project

APACHE-2.0 License

Stars
2

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-file: go.sum
      cache-dependency-path: go.sum
      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