Skip to content

Added crd changes for making group optional (#42) #59

Added crd changes for making group optional (#42)

Added crd changes for making group optional (#42) #59

Workflow file for this run

name: deploy-pipeline
on:
push:
branches:
- main
jobs:
filters:
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
charts: ${{ steps.filter.outputs.hce }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
hce:
- 'hce/**'
helm-deployment:
runs-on: ubuntu-latest
needs: filters
if: needs.filters.outputs.charts == 'true'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Install helm s3 plugin
run: helm plugin install https://github.com/hypnoglow/helm-s3.git --version v0.10.0
- name: Adding helm repo
run: helm repo add hce s3://hce-charts
- name: Package helm
run: helm package hce
- name: Get Chart Version from Chart.yaml
id: c_version
uses: mikefarah/yq@master
with:
cmd: yq eval '.version' 'hce/Chart.yaml'
- name: Push helm package to s3
run: HELM_S3_MODE=3 helm s3 push --relative ./hce-${{ steps.c_version.outputs.result }}.tgz hce --force