Skip to content

Commit

Permalink
Feature/ci (#14)
Browse files Browse the repository at this point in the history
* add ci

Signed-off-by: David J. M. Karlsen <[email protected]>

* configure

Signed-off-by: David J. M. Karlsen <[email protected]>

* trigger deployment

Signed-off-by: David J. M. Karlsen <[email protected]>

* move to preferred tooling

Signed-off-by: David J. M. Karlsen <[email protected]>

* bump version to pass linting

Signed-off-by: David J. M. Karlsen <[email protected]>

* add required field

Signed-off-by: David J. M. Karlsen <[email protected]>

* lint-fix

Signed-off-by: David J. M. Karlsen <[email protected]>

* drop publish job as this repo does not use gh-pages as helm-repo

Signed-off-by: David J. M. Karlsen <[email protected]>
  • Loading branch information
davidkarlsen authored and zhill committed Jan 12, 2020
1 parent 8cc4b14 commit 6d41a80
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Test using kind and chart-testing tool"
on: [pull_request, push]

jobs:
test:
strategy:
fail-fast: false
matrix:
kubernetesVersion: ["v1.13.12", "v1.17.0"]
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
steps:
- name: Checkout
uses: actions/[email protected]
- name: Shellcheck
uses: ludeeus/[email protected]
- name: Install kind
uses: helm/[email protected]
with:
node_image: "kindest/node:${{ matrix.kubernetesVersion }}"
config: kind-config.yaml
install_local_path_provisioner: true
- name: Verify kind
run: |
kubectl cluster-info
kubectl get nodes -o wide
kubectl get pods -n kube-system
- name: Run chart-testing (lint)
uses: helm/[email protected]
with:
command: lint
config: ct-config.yaml
- name: Run chart-testing (install)
uses: helm/[email protected]
with:
command: install
config: ct-config.yaml
3 changes: 3 additions & 0 deletions ct-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
remote: origin
chart-dirs:
- stable
6 changes: 6 additions & 0 deletions kind-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Cluster
apiVersion: kind.sigs.k8s.io/v1alpha3
nodes:
- role: control-plane
- role: worker
- role: worker
4 changes: 2 additions & 2 deletions stable/anchore-admission-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: anchore-admission-controller
description: A kubernetes admission controller for validating and mutating webhooks that operates against Anchore Engine to make access decisions and annotations
apiVersion: v1
appVersion: 0.2.2
version: 0.2.4
version: 0.2.5
home: https://github.com/anchore/kubernetes-admission-controller
maintainers:
- name: zhill
email: [email protected]
- name: btodhunter
email: [email protected]
icon: https://anchore.com/wp-content/uploads/2016/08/anchore.png

Empty file.

0 comments on commit 6d41a80

Please sign in to comment.