Add linting workflow

This commit is contained in:
stefanprodan
2020-05-27 17:18:54 +03:00
parent fd1814052a
commit 026b40876c
4 changed files with 23 additions and 5 deletions

View File

@@ -1,10 +1,21 @@
on: [push, pull_request]
name: test
name: lint
on:
pull_request:
push:
branches:
- '*'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: helm
uses: stefanprodan/kube-tools@v1
with:
command: |
helmv3 template ./charts/podinfo | kubeval --strict
- name: kubeval
uses: stefanprodan/kube-tools@v1
with:

View File

@@ -21,6 +21,13 @@ jobs:
--tag "docker.io/stefanprodan/podinfo:${GITHUB_REF#refs/tags/}" \
--tag "docker.io/stefanprodan/podinfo:latest" \
--file Dockerfile .
- name: Publish base image
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: stefanprodan/podinfo-base
tags: latest
- name: Publish helm chart
uses: ./.github/actions/helm-gh-pages
with: