An open API service indexing awesome lists of open source software.

https://github.com/int128/kubebuilder-workflows

Reusable workflows for kubebuilder project
https://github.com/int128/kubebuilder-workflows

github-actions golang kubebuilder kubernetes reusable-workflows

Last synced: 9 months ago
JSON representation

Reusable workflows for kubebuilder project

Awesome Lists containing this project

README

          

# kubebuilder-workflows [![test](https://github.com/int128/kubebuilder-workflows/actions/workflows/test-workflows.yaml/badge.svg)](https://github.com/int128/kubebuilder-workflows/actions/workflows/test-workflows.yaml)

This provides the reusable workflows for a Kubebuilder project.

## Getting Started

```yaml
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
```

```yaml
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
```

```yaml
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
```