-
Notifications
You must be signed in to change notification settings - Fork 9
33 lines (27 loc) · 1.01 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on:
push:
branches:
- '*'
name: Accuknox-Job Pipeline
jobs:
deploy:
runs-on: ubuntu-latest
env:
ECR_REGION: us-east-1
ECR_REPO: public.ecr.aws/k9v9d5v2
# CHART_NAME: kube-prometheus-stack
steps:
- uses: actions/checkout@v2
- name: AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ${{ env.ECR_REGION }}
aws-access-key-id: ${{ secrets.AWS_DEV_ACCESS_ID }}
aws-secret-access-key: ${{ secrets.AWS_DEV_SECRET_ID }}
- name: Authenticate ECR public authenticate
shell: bash
run: |
aws ecr-public get-login-password --region ${{ env.ECR_REGION }} | helm registry login --username AWS --password-stdin ${{ env.ECR_REPO }}
helm template accuknox-*
helm package accuknox-*
helm push accuknox-* 'oci://${{ env.ECR_REPO }}'