action #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.AWS_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 package accuknox-* | |
helm push accuknox-* oci://${{ env.ECR_REPO }} |