Skip to content

Commit

Permalink
fix(actions): fix kubeconform workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
willianpaixao committed Nov 3, 2024
1 parent 5230863 commit 4dfda28
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/kubeconform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches: ["main"]
paths: ["kubernetes/**"]
workflow_dispatch:

env:
KUBERNETES_DIR: ./kubernetes
Expand All @@ -17,13 +18,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Setup Workflow Tools
run: brew install fluxcd/tap/flux kubeconform kustomize

- name: Run kubeconform
shell: bash
run: bash ./scripts/kubeconform.sh ${{ env.KUBERNETES_DIR }}
- name: Login to Github Packages
run: echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin
- uses: docker://ghcr.io/yannh/kubeconform:latest
with:
entrypoint: "/kubeconform"
args: "-summary -output json -ignore-missing-schemas -ignore-filename-pattern json ${{ env.KUBERNETES_DIR }}"

0 comments on commit 4dfda28

Please sign in to comment.