From 1d4b87320b3e6e5a56348c7fabc806bb64cd552d Mon Sep 17 00:00:00 2001 From: Anthony Vuong Date: Tue, 2 May 2023 15:16:37 -0700 Subject: [PATCH] Add cm-publish steps --- .github/workflows/cm-publish.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/cm-publish.yml diff --git a/.github/workflows/cm-publish.yml b/.github/workflows/cm-publish.yml new file mode 100644 index 00000000..54b6268a --- /dev/null +++ b/.github/workflows/cm-publish.yml @@ -0,0 +1,31 @@ +## Reference: https://github.com/helm/chart-releaser-action +name: Publish Chart to Chartmuseum +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install Helm + uses: azure/setup-helm@v3 + with: + version: v3.10.1 # Also update in lint-and-test.yaml + + - name: Add uclalibrary helm repo + run: | + helm repo add uclalibrary https://chartmuseum.library.ucla.edu/charts/ + + - name: Run chart-releaser + run: | + helm cm-push charts/argo-cd uclalibrary -u ${CM_USERNAME} -p ${CM_PASSWORD} + env: + CM_USERNAME: "${{ secrets.CM_USERNAME }}" + CM_PASSWORD: "${{ secrets.CM_PASSWORD }}"