Skip to content

Commit

Permalink
chore: workflow for pushing chart
Browse files Browse the repository at this point in the history
Signed-off-by: Rudraksh Pareek <[email protected]>
  • Loading branch information
DelusionalOptimist committed Apr 22, 2024
1 parent c84814c commit 91bbb3e
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ env:
CHART_NAME_KIEM: accuknox-kiem-job
CHART_PATH_KIEM: ./accuknox-kiem-job
CHART_REVISION_NAME_KIEM: accuknox-kiem-job
CHART_NAME_KUBESCAPE: accuknox-kubescape-job
CHART_PATH_KUBESCAPE: ./accuknox-kubescape-job
CHART_REVISION_NAME_KUBESCAPE: accuknox-kubescape-job
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_DEV_ACCESS_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_DEV_SECRET_ID }}
AWS_REGION: us-east-1
Expand Down Expand Up @@ -74,6 +77,19 @@ jobs:
chart-path: ${{ env.CHART_PATH_KIEM }}
revision-name: ${{ env.CHART_REVISION_NAME_KIEM}}

chart-validate-kubescape:
runs-on: ubuntu-latest
if: always() && !contains(needs.tag-validate.result, 'failure')
needs: [tag-validate]
steps:
- name: Checkout source
uses: accuknox/common-gh-actions/actions/checkout-source@main
- name: Validate helm chart
uses: accuknox/common-gh-actions/actions/helm-check@main
with:
chart-path: ${{ env.CHART_PATH_KUBESCAPE }}
revision-name: ${{ env.CHART_REVISION_NAME_KUBESCAPE}}

chart-push-k8s:
runs-on: ubuntu-latest
needs: [chart-validate-k8s]
Expand Down Expand Up @@ -120,4 +136,20 @@ jobs:
version: ${{ github.ref_name }}
ecr-region: ${{ env.AWS_REGION }}
ecr-repo: ${{ env.REPO }}
type: public
type: public

chart-push-kubescape:
runs-on: ubuntu-latest
needs: [chart-validate-kubescape]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout source
uses: accuknox/common-gh-actions/actions/checkout-source@main
- name: Push helm chart to ECR
uses: accuknox/common-gh-actions/actions/helm-push@main
with:
chart-path: ${{ env.CHART_PATH_KUBESCAPE }}
version: ${{ github.ref_name }}
ecr-region: ${{ env.AWS_REGION }}
ecr-repo: ${{ env.REPO }}
type: public

0 comments on commit 91bbb3e

Please sign in to comment.