Skip to content

Commit

Permalink
1st stab at kube-linting
Browse files Browse the repository at this point in the history
  • Loading branch information
porridge committed Apr 22, 2024
1 parent 4e7288b commit 77da060
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod

- name: Verify
run: go mod verify

- name: Build
run: go build ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
install-mode: binary
install-mode: binary

- name: Prepare manifests for linting
run: |
mkdir manifests
go run deploy/main.go my-images v0.0.8 vanilla > manifests/vanilla.yaml
go run deploy/main.go my-images v0.0.8 ocp > manifests/ocp.yaml
go run deploy/main.go my-images v0.0.8 vanilla my-secret > manifests/vanilla-with-secret.yaml
go run deploy/main.go my-images v0.0.8 ocp my-secret > manifests/ocp-with-secret.yaml
- name: kube-linter
uses: stackrox/[email protected]
with:
directory: manifests

0 comments on commit 77da060

Please sign in to comment.