Skip to content

Add test for kustomize #11

Add test for kustomize

Add test for kustomize #11

name: Kustomize GitHub Actions for rook-cluster
on:
pull_request:
paths:
- kustomize/rook-cluster/**
- .github/workflows/kustomize-rook-cluster.yaml
jobs:
kustomize:
name: Kustomize
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Kustomize Install
working-directory: /usr/local/bin/
run: |
if [ ! -f /usr/local/bin/kustomize ]; then
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | sudo bash
fi
- name: Run Kustomize Build
run: |
kustomize build kustomize/rook-cluster > /tmp/rendered.yaml
- name: Return Kustomize Build
uses: actions/upload-artifact@v2
with:
name: kustomize-rook-cluster-artifact
path: /tmp/rendered.yaml