Skip to content

Commit

Permalink
Validate kustomize build in CI
Browse files Browse the repository at this point in the history
commit auto-generated manifests for existsing tasks
  • Loading branch information
tisutisu committed Jan 7, 2025
1 parent 6fa1651 commit 29e718a
Show file tree
Hide file tree
Showing 57 changed files with 19,474 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/check-kustomize-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Validate PR - kustomize manifests
'on':
pull_request:
branches: [main]
jobs:
kustomize-build:
name: Check Kustomize Build of Task and Pipelines
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Validate Manifests
run: hack/verify-manifests.sh
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ Buildah also has a remote version, which can be generated with:
./hack/generate-buildah-remote.sh
```
## Making Changes to tasks and pipelines
If your tasks or pipelines contains `kustomization.yaml`, after making changes to the tasks or pipelines, run `hack/build-manifests.sh` and
commit the `auto-generated` directory (in addition to your changes). It will help us to make sure the kustomize build is successful and review the changes.
`hack/build-manifests.sh` needs `kustomize` to be installed locally.It can be downloaded using `hack/get-kustomize.sh` script.
## Testing
### Prerequisites
Expand Down
Loading

0 comments on commit 29e718a

Please sign in to comment.