name: Build and Push on: pull_request: push: branches: - master - releases/* jobs: build: runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 # all history for all branches and tags - name: Install Helm run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - name: Lint Helm Chart run: helm lint . - name: pack helm release run: helm package . push: runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-latest steps: - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 # all history for all branches and tags - name: Install Helm run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - name: Get Package Name run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT - name: Push to Package Repo run: curl --user $HELM_USER:$HELM_PASSWD -X POST --upload-file ./$PACKAGE_NAME.tgz $HELM_REPO