Skip to content

Commit

Permalink
add ci yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
linroex committed May 1, 2024
1 parent b2af49e commit f564956
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI
on: [push]
jobs:
k8s_yaml_validator:
runs-on: ubuntu-latest
steps:
- name: login to Github Packages
run: echo "${{ github.token }}" | docker login https://ghcr.io -u ${GITHUB_ACTOR} --password-stdin

- uses: actions/checkout@v2
- uses: docker://ghcr.io/yannh/kubeconform:latest
with:
entrypoint: '/kubeconform'
args: "-summary -output json k8s/"

secret_scanning:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Secret Scanning
uses: trufflesecurity/trufflehog@main

build_image:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build Docker image
uses: docker/build-push-action@v2
with:
context: ./app
file: ./app/Dockerfile
push: false
tags: app-local 

0 comments on commit f564956

Please sign in to comment.