⚡️ :: dex server 추가 #115
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
## Reference: https://github.com/helm/chart-releaser-action | |
name: Chart Publish | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "charts/**" | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
permissions: | |
contents: write | |
packages: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/[email protected] | |
with: | |
version: v3.10.1 | |
- name: Add helm repo | |
run: | | |
helm repo add prometheus https://prometheus-community.github.io/helm-charts | |
helm repo add grafana https://grafana.github.io/helm-charts | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm repo add dandydeveloper https://dandydeveloper.github.io/charts/ | |
- name: Helm build | |
run: | | |
changed_helm_packages=$(git diff --name-only HEAD~1 | grep '^charts/' | cut -d/ -f1-2) | |
echo $changed_helm_packages | |
while IFS=$'\n' read -r package_directory; do | |
helm dependency build $package_directory || true | |
helm package $package_directory || true | |
done <<< "$changed_helm_packages" | |
- name: checkout gh-pages branch and helm index | |
run: | | |
git checkout gh-pages -- | |
helm repo index . | |
- name: Commit The Chart Realease | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: ${{ github.event.head_commit.message }} | |
commit_options: '--no-verify --signoff' | |
branch: gh-pages | |
skip_checkout: true | |
repository: . | |
commit_user_name: XQUARE GitOps Bot | |
commit_user_email: [email protected] | |
commit_author: XQUARE GitOps Bot <[email protected]> |