Reverted custom and pod label changes #15
This file contains hidden or 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: Copy README.md to Chart Directory | |
run: cp README.md chart/README.md | |
- 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 | |