mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-04-20 17:56:41 +00:00
Add linting workflow
This commit is contained in:
@@ -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:
|
||||
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user