36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Helm CI
|
|
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the dev branch
|
|
push:
|
|
branches: [ dev ]
|
|
paths: [ dev/helm/** ]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Publish Chart
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Package and Push Chart
|
|
run: |
|
|
helm plugin install https://github.com/chartmuseum/helm-push.git
|
|
helm repo add chartmuseum https://charts.js.wiki --username ${{env.HELM_REPO_USERNAME}} --password ${{env.HELM_REPO_PASSWORD}}
|
|
helm cm-push dev/helm/ chartmuseum
|
|
helm repo remove chartmuseum
|
|
|
|
# - name: Generate and Push Chart Archive
|
|
# run: |
|
|
# mkdir -p $GITHUB_WORKSPACE/charts
|
|
# helm package . -d $GITHUB_WORKSPACE/charts
|
|
# cd $GITHUB_WORKSPACE/charts
|
|
# curl --data-binary "@wiki-2.2.0.tgz" -u $HELM_MUSEUM_USER:$HELM_MUSEUM_PASS https://charts.js.wiki/api/charts
|
|
# working-directory: ./dev/helm
|
|
|