Kubevious #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:ts=2:sts=2:sw=2:et | |
# | |
# Author: Hari Sekhon | |
# Date: 2023-05-23 23:37:06 +0100 (Tue, 23 May 2023) | |
# | |
# https://github.com/HariSekhon/Kubernetes-configs | |
# | |
# License: see accompanying Hari Sekhon LICENSE file | |
# | |
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish | |
# | |
# https://www.linkedin.com/in/HariSekhon | |
# | |
--- | |
name: Kubevious | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '*.yaml' | |
- .github/workflows/kubevious.yaml | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '*.yaml' | |
- .github/workflows/kubevious.yaml | |
workflow_dispatch: # needs to be in default branch before you get the UI option to manually run though | |
inputs: | |
debug: | |
type: boolean | |
required: false | |
default: false | |
schedule: | |
- cron: '0 0 * * 1' | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -euxo pipefail {0} | |
env: | |
DEBUG: ${{ github.event.inputs.debug == true || '' }} | |
jobs: | |
kubevious: | |
name: Kubevious | |
runs-on: ubuntu-latest | |
steps: | |
- name: Environment | |
run: env | sort | |
- uses: actions/checkout@v3 | |
- uses: actions/checkout@v3 | |
with: | |
repository: HariSekhon/DevOps-Bash-tools | |
submodules: 'true' # requires Git 2.18+ to be installed first | |
path: bash-tools | |
#- name: Install Kubevious | |
# #run: curl https://get.kubevious.io/cli.sh | bash | |
# run: bash-tools/install/install_kubevious.sh | |
- name: Kubvious | |
# https://github.com/kubevious/cli/blob/main/action.yml | |
uses: kubevious/cli@main | |
with: | |
#manifests: '*' | |
manifests: '' # only check top-level templates for now | |
detailed_output: 'true' | |
ignore_non_k8s: 'true' | |
#run: | | |
# # fails on most of the kustomization builds due to lack of --enable-helm: | |
# # | |
# # https://github.com/kubevious/cli/issues/15 | |
# # | |
# #kubevious guard * --detailed # --ignore-non-k8s | |
# kubevious guard --detailed # --ignore-non-k8s |