Update hpa apiVersion to v2 #5
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
name: "Publish Chart" | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/publish_chart.yml | |
- chart/** | |
push: | |
paths: | |
- .github/workflows/publish_chart.yml | |
- chart/** | |
branches: | |
- main | |
jobs: | |
publish-chart: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.14.0 | |
- name: Create Chart Package | |
run: helm package chart -d ./tmp | |
- name: Login to Registry | |
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | helm registry login ${{ vars.REGISTRY_ADDR }} --username ${{ vars.REGISTRY_USERNAME }} --password-stdin | |
- name: Push Packaged Chart to Registry | |
run: helm push ./tmp/* oci://${{ vars.REGISTRY_ADDR }}/library | |