Skip to content

Commit

Permalink
action
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun committed Jun 20, 2024
1 parent 05d26d2 commit 7a4885c
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,36 @@ on:
- test

jobs:
helm_push_to_ecr:
helm_chart_validation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Helm
run: |
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
- name: Validate k8s-risk-assessment-job
run: |
helm lint k8s-risk-assessment-job
helm template k8s-risk-assessment-job --dry-run > /dev/null
- name: Validate k8tls-job
run: |
helm lint k8tls-job
helm template k8tls-job --dry-run > /dev/null
- name: Validate kiem-job
run: |
helm lint kiem-job
helm template kiem-job --dry-run > /dev/null
helm_push_to_ecr:
runs-on: ubuntu-latest
needs: [helm_chart_validation]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -142,7 +169,7 @@ jobs:
- name: Package and Push Helm Charts
run: |
for CHART_DIR in k8tls-job kiem-job; do
for CHART_DIR in k8s-risk-assessment-job k8tls-job kiem-job; do
helm package $CHART_DIR
CHART_PACKAGE=$(ls $CHART_DIR-*.tgz)
helm push $CHART_PACKAGE oci://${{ secrets.REPO }}
Expand Down

0 comments on commit 7a4885c

Please sign in to comment.